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
|