summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-26 01:11:18 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-26 01:11:18 -0400
commitac8de020ca643afa3286f00d8f696d19be45f1a4 (patch)
tree0bd63099812a444f4631239b55326ec29cbb13a5 /etc/rc.firmware
parentbaabd21dba8ff5ff125b329d4a9e0fddc5d2b572 (diff)
downloadpfsense-ac8de020ca643afa3286f00d8f696d19be45f1a4.zip
pfsense-ac8de020ca643afa3286f00d8f696d19be45f1a4.tar.gz
Output everything for debugging. Do not sleep.
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 1b88aa1..c7a4e28 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -157,12 +157,9 @@ pfSenseNanoBSDupgrade)
# Sanity check - bail early if there's no firmware file!
if [ ! -r $IMG ]; then
echo "2nd parameter has not been passed or file does not exist. Exiting." | logger -p daemon.info -i -t Upgrade
- exit
+ exit 1
fi
- # wait 1 seconds before beginning
- sleep 1
-
touch /var/run/firmware.lock
echo "Firmware upgrade in progress..." | logger -p daemon.info -i -t Upgrade
@@ -185,10 +182,12 @@ pfSenseNanoBSDupgrade)
fi
# Remove TOFLASH and get ready for new flash image
- dd if=/dev/zero of=/dev/ufs/${TOFLASH} bs=1m count=1 >/dev/null 2>&1
+ dd if=/dev/zero of=/dev/ufs/${TOFLASH} bs=1m count=1
+ #>/dev/null 2>&1
# Stream gzipped image to dd and explode image to new area
- /usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/ufs/${TOFLASH} bs=16k >/dev/null 2>&1
+ /usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/ufs/${TOFLASH} bs=16k
+ #>/dev/null 2>&1
# Ensure that our new system is sound and bail if it is not and file a notice
/sbin/fsck_ffs -n /dev/ufs/${TOFLASH}
OpenPOWER on IntegriCloud