mirror of
https://review.haiku-os.org/haiku
synced 2025-02-08 22:58:18 +01:00
65ed8a5e87
* This is the final missing piece of the former boot process. * Removed the unused Bootscript, and Bootscript.cd files.
23 lines
457 B
Bash
23 lines
457 B
Bash
#!/bin/sh
|
|
|
|
# Check for fresh install and run post install scripts.
|
|
|
|
freshInstallIndicator=/boot/system/settings/fresh_install
|
|
postInstallDir=boot/post-install
|
|
if [ -e $freshInstallIndicator ]; then
|
|
# wait a moment for things to calm down a bit
|
|
sleep 3
|
|
|
|
# execute scripts
|
|
for f in /boot/system/$postInstallDir/*.sh
|
|
do
|
|
if [ -f $f ]; then
|
|
echo "Running post install script $f ..." > /dev/dprintf
|
|
$f
|
|
fi
|
|
done
|
|
|
|
sync
|
|
rm $freshInstallIndicator
|
|
fi
|