xref: /haiku/data/system/boot/PostInstallScript (revision 8a9e1e0d4a586732b5008d8a5888e14aa815b893)
1#!/bin/sh
2
3# Check for fresh install and run post install scripts.
4
5title=$1
6freshInstallIndicator=$2
7postInstallDir=$3
8
9if [ -e $freshInstallIndicator ]; then
10	# execute scripts
11	for f in $postInstallDir/*.sh
12	do
13		if [ -f $f ]; then
14			echo "Running $title script $f ..." > /dev/dprintf
15			$f
16		fi
17	done
18
19	sync
20	rm $freshInstallIndicator
21fi
22