xref: /haiku/data/system/boot/PostInstallScript (revision 9f739dd2e868114ce19ae73afcff07caf2ddb8b6)
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