d2eca26b73
* The same mechanism (and the same PostInstallScript) is used for this. * If a file first_login exists in ~/config/settings/boot, the first-login scripts are launched, and the file removed. * This fixes adding the deskbar tray icons even when there is no Deskbar running yet (for example on first boot when the FirstBootPrompt starts), or, IOW bug #12275.
22 lines
343 B
Bash
22 lines
343 B
Bash
#!/bin/sh
|
|
|
|
# Check for fresh install and run post install scripts.
|
|
|
|
title=$1
|
|
freshInstallIndicator=$2
|
|
postInstallDir=$3
|
|
|
|
if [ -e $freshInstallIndicator ]; then
|
|
# execute scripts
|
|
for f in $postInstallDir/*.sh
|
|
do
|
|
if [ -f $f ]; then
|
|
echo "Running $title script $f ..." > /dev/dprintf
|
|
$f
|
|
fi
|
|
done
|
|
|
|
sync
|
|
rm $freshInstallIndicator
|
|
fi
|