summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-26 20:57:13 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-26 20:57:13 -0400
commit5924c7f8777bd7b08d903bbbe669411aeb7c1f21 (patch)
tree2f3829a4a643a62a6e5fae12e25f067bbf804dd1 /etc/rc.firmware
parentdb3c87be7a7beb8de66f46c4ddcff07516b6cecc (diff)
downloadpfsense-5924c7f8777bd7b08d903bbbe669411aeb7c1f21.zip
pfsense-5924c7f8777bd7b08d903bbbe669411aeb7c1f21.tar.gz
Output ls -lah /dev/ as well
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware14
1 files changed, 10 insertions, 4 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 1a39219..f03a78d 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -203,6 +203,7 @@ pfSenseNanoBSDupgrade)
echo "COMPLETE_PATH $COMPLETE_PATH" >> /cf/upgrade_log.txt
echo "GLABEL_SLICE $GLABEL_SLICE" >> /cf/upgrade_log.txt
+ ls -lah /dev/ >> /cf/upgrade_log.txt
echo "" >> /cf/upgrade_log.txt
ls -lah $IMG >> /cf/upgrade_log.txt
echo "" >> /cf/upgrade_log.txt
@@ -256,30 +257,35 @@ ENDOFF
# Remove upgrade file
rm -f $IMG
+ # Mount newly prepared slice
mkdir /tmp/$COMPLETE_PATH
mount /dev/$COMPLETE_PATH /tmp/$COMPLETE_PATH
+
# If /tmp/$TOFLASH/tmp/post_upgrade_command exists
# after update then execute the command.
if [ -f /tmp/$TOFLASH/tmp/post_upgrade_command ]; then
sh /tmp/$TOFLASH/tmp/post_upgrade_command >> /cf/upgrade_log.txt 2>&1
fi
+
# Update fstab
sed -i "" "s/pfsense${OLDSLICE}/pfsense${SLICE}/g" /tmp/$TOFLASH/etc/fstab
echo "" >> /cf/upgrade_log.txt
cat /tmp/$TOFLASH/etc/fstab >> /cf/upgrade_log.txt
+
+ # Unmount newly prepared slice
umount /tmp/$TOFLASH
- # remount /cf ro
+ # Remove extra stuff
rm -rf /etc/rc.conf
rm -rf /etc/motd
- find / -name CVS -type d -exec rm {} \;
rm -rf /usr/savecore/*
- /etc/rc.conf_mount_ro
- rm -f /var/run/firmware.lock
+ # remount /cf ro
+ /etc/rc.conf_mount_ro
/bin/sync
echo "Done." | logger -p daemon.info -i -t Upgrade
+ rm -f /var/run/firmware.lock
sh /etc/rc.reboot
;;
OpenPOWER on IntegriCloud