From 7a35466cd8e09859eedb00fb42b88fedef0efa00 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 7 Sep 2005 20:21:25 +0000 Subject: if /etc/init_bootloader.sh exists, run this after upgrade. This will be the original bsdlabel command that was run. --- etc/rc.firmware | 6 ++++++ etc/rc.firmware_auto | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'etc') diff --git a/etc/rc.firmware b/etc/rc.firmware index 0270e79..176da20 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -201,3 +201,9 @@ rm -rf /usr/savecore/* /sbin/mount -r /cf 2>/dev/null /sbin/umount -f / 2>/dev/null /sbin/mount -r / 2>/dev/null + +if [ -e /etc/init_bootloader.sh ]; then + sh /etc/init_bootloader.sh +fi + + diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto index 0f34fec..23dc340 100755 --- a/etc/rc.firmware_auto +++ b/etc/rc.firmware_auto @@ -58,11 +58,17 @@ if [ "$PMD" = "$MD" ]; then /bin/sync sleep 5 /usr/local/bin/php /etc/rc.conf_mount_ro + if [ -e /etc/init_bootloader.sh ]; then + sh /etc/init_bootloader.sh + fi fi if [ "$PLATFORM" = "net45xx" ]; then /bin/sync sleep 5 /usr/local/bin/php /etc/rc.conf_mount_ro + if [ -e /etc/init_bootloader.sh ]; then + sh /etc/init_bootloader.sh + fi fi exit 0 fi -- cgit v1.1