1#!/bin/sh 2 3# Check for fresh install and run oddball system post install stuff that the 4# package_daemon doesn't handle. All Home and other post install scripts 5# get run the old way here (probably won't be any, unless you reinstalled?). 6 7title=$1 8freshInstallIndicator=$2 9postInstallDir=$3 10 11if [ -e $freshInstallIndicator ]; then 12 # execute scripts 13 14 if [ "$postInstallDir" == "/boot/system/boot/post-install" ]; then 15 # Special case for one script file that isn't in a package. Rest 16 # of the files in there will be run by package_daemon when 17 # doing first boot processing. Can be removed when Gerrit 18 # Change #3751 is done. 19 specialCaseFile="$postInstallDir/add_catalog_entry_attributes.sh" 20 if [ -e "$specialCaseFile" ]; then 21 echo "Running $title special case $specialCaseFile first boot processing." > /dev/dprintf 22 "$specialCaseFile" 23 else 24 echo "Skipping $title obsolete first boot processing, files:" > /dev/dprintf 25 ls "$postInstallDir" > /dev/dprintf 26 fi 27 else 28 for f in $postInstallDir/*.sh 29 do 30 if [ -f $f ]; then 31 echo "Running $title script $f ..." > /dev/dprintf 32 $f 33 fi 34 done 35 fi 36 37 sync 38 rm $freshInstallIndicator 39fi 40