Moved per user post install actions to first-login script.
* 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.
This commit is contained in:
@@ -2,17 +2,16 @@
|
||||
|
||||
# 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
|
||||
title=$1
|
||||
freshInstallIndicator=$2
|
||||
postInstallDir=$3
|
||||
|
||||
if [ -e $freshInstallIndicator ]; then
|
||||
# execute scripts
|
||||
for f in /boot/system/$postInstallDir/*.sh
|
||||
for f in $postInstallDir/*.sh
|
||||
do
|
||||
if [ -f $f ]; then
|
||||
echo "Running post install script $f ..." > /dev/dprintf
|
||||
echo "Running $title script $f ..." > /dev/dprintf
|
||||
$f
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user