mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Hide warning messages
This commit is contained in:
parent
4684dc58ed
commit
7d7bd7ca40
@ -125,10 +125,10 @@ pfSenseupgrade)
|
||||
echo "Firmware upgrade in progress..." | logger -p daemon.info -i -t Upgrade
|
||||
|
||||
# backup config
|
||||
/bin/mkdir /tmp/configbak
|
||||
cp -p /conf/* /tmp/configbak
|
||||
/bin/mkdir -p /tmp/configbak
|
||||
cp -p /conf/* /tmp/configbak 2>/dev/null
|
||||
# mount /cf
|
||||
/sbin/mount -w -o noatime /cf
|
||||
/sbin/mount -w -o noatime /cf 2>/dev/null
|
||||
|
||||
# tar explode image onto hd
|
||||
if [ -r $2 ]; then
|
||||
@ -148,7 +148,7 @@ pfSenseupgrade)
|
||||
fi
|
||||
|
||||
# restore config
|
||||
cp -p /tmp/configbak/* /conf
|
||||
cp -p /tmp/configbak/* /conf 2>/dev/null
|
||||
|
||||
# restore /etc symlinks
|
||||
rm /etc/hosts
|
||||
@ -157,8 +157,8 @@ pfSenseupgrade)
|
||||
restore_chflags
|
||||
|
||||
# remount /cf ro
|
||||
/sbin/umount -f /cf
|
||||
/sbin/mount -r /cf
|
||||
/sbin/umount -f /cf 2>/dev/null
|
||||
/sbin/mount -r /cf 2>/dev/null
|
||||
|
||||
echo "Done." | logger -p daemon.info -i -t Upgrade
|
||||
sh /etc/rc.reboot
|
||||
|
||||
Loading…
Reference in New Issue
Block a user