Added post-install script, and start UserBootscript again.

* This is the final missing piece of the former boot process.
* Removed the unused Bootscript, and Bootscript.cd files.
This commit is contained in:
Axel Dörfler
2015-07-22 20:45:43 +02:00
parent 58fd8acd78
commit 65ed8a5e87
6 changed files with 32 additions and 283 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/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