#!/bin/sh# Check for fresh install and run oddball system post install stuff that the# package_daemon doesn't handle. All Home and other post install scripts# get run the old way here (probably won't be any, unless you reinstalled?).title=$1freshInstallIndicator=$2postInstallDir=$3if [ -e $freshInstallIndicator ]; then# execute scriptsif [ "$postInstallDir" == "/boot/system/boot/post-install" ]; then# Special case for one script file that isn't in a package. Rest# of the files in there will be run by package_daemon when# doing first boot processing. Can be removed when Gerrit# Change #3751 is done.specialCaseFile="$postInstallDir/add_catalog_entry_attributes.sh"if [ -e "$specialCaseFile" ]; thenecho "Running $title special case $specialCaseFile first boot processing." > /dev/dprintf"$specialCaseFile"elseecho "Skipping $title obsolete first boot processing, files:" > /dev/dprintfls "$postInstallDir" > /dev/dprintffielsefor f in $postInstallDir/*.shdoif [ -f $f ]; thenecho "Running $title script $f ..." > /dev/dprintf$ffidonefisyncrm $freshInstallIndicatorfi