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