notify_all_remote(sprintf(gettext("DynDNS updated IP Address on %s (%s) to %s"),convert_real_interface_to_friendly_descr($this->_if),$this->_if,$wan_ip));
notify_all_remote(sprintf(gettext("DynDNS updated IP Address on %s (%s) to %s"),convert_real_interface_to_friendly_descr($this->_if),$this->_if,$wan_ip));
# Copyright (C) 2003 Manuel Kasper <mk@neon1.net>.
# Copyright (C) 2003 Manuel Kasper <mk@neon1.net>.
# All rights reserved.
# All rights reserved.
# mount /cf
/usr/local/etc/rc.conf_mount_rw
# Reset file(s)
# Reset file(s)
echo"">/conf/upgrade_log.txt
echo"">/conf/upgrade_log.txt
echo"">/conf/firmware_update_misc_log.txt
echo"">/conf/firmware_update_misc_log.txt
...
@@ -123,7 +120,6 @@ enable)
...
@@ -123,7 +120,6 @@ enable)
echo"">> /conf/upgrade_log.txt
echo"">> /conf/upgrade_log.txt
echo"Enable">> /conf/upgrade_log.txt
echo"Enable">> /conf/upgrade_log.txt
echo"">> /conf/upgrade_log.txt
echo"">> /conf/upgrade_log.txt
/usr/local/etc/rc.conf_mount_ro
;;
;;
auto)
auto)
touch /var/run/firmwarelock.dirty
touch /var/run/firmwarelock.dirty
...
@@ -131,14 +127,12 @@ auto)
...
@@ -131,14 +127,12 @@ auto)
remove_chflags
remove_chflags
/usr/local/etc/rc.firmware_auto
/usr/local/etc/rc.firmware_auto
restore_chflags
restore_chflags
/usr/local/etc/rc.conf_mount_ro
;;
;;
pfSenseNanoBSDupgrade)
pfSenseNanoBSDupgrade)
# Sanity check - bail early if there's no firmware file!
# Sanity check - bail early if there's no firmware file!
if[!-r$IMG];then
if[!-r$IMG];then
echo"2nd parameter has not been passed or file does not exist. Exiting.">> /conf/upgrade_log.txt 2>&1
echo"2nd parameter has not been passed or file does not exist. Exiting.">> /conf/upgrade_log.txt 2>&1
/usr/local/etc/rc.conf_mount_ro
exit 1
exit 1
fi
fi
...
@@ -147,7 +141,6 @@ pfSenseNanoBSDupgrade)
...
@@ -147,7 +141,6 @@ pfSenseNanoBSDupgrade)
echo"You cannot use a full file for upgrade. Please use a file labeled nanobsd upgrade."
echo"You cannot use a full file for upgrade. Please use a file labeled nanobsd upgrade."
file_notice "NanoBSDUpgradeFailure""You have attemped to use a full NanoBSD installation file as an upgrade. Please use a NanoBSD file labeled 'upgrade' instead."
file_notice "NanoBSDUpgradeFailure""You have attemped to use a full NanoBSD installation file as an upgrade. Please use a NanoBSD file labeled 'upgrade' instead."
rm-f$IMG
rm-f$IMG
/usr/local/etc/rc.conf_mount_ro
exit 1
exit 1
fi
fi
...
@@ -217,7 +210,6 @@ pfSenseNanoBSDupgrade)
...
@@ -217,7 +210,6 @@ pfSenseNanoBSDupgrade)
rm-f /var/run/firmwarelock.dirty
rm-f /var/run/firmwarelock.dirty
rm-f /var/run/firmware.lock
rm-f /var/run/firmware.lock
rm-f${IMG}
rm-f${IMG}
/usr/local/etc/rc.conf_mount_ro
exit 1
exit 1
fi
fi
...
@@ -268,7 +260,6 @@ pfSenseNanoBSDupgrade)
...
@@ -268,7 +260,6 @@ pfSenseNanoBSDupgrade)
rm-f$IMG
rm-f$IMG
rm-f /var/run/firmwarelock.dirty
rm-f /var/run/firmwarelock.dirty
rm-f /var/run/firmware.lock
rm-f /var/run/firmware.lock
/usr/local/etc/rc.conf_mount_ro
exit 1
exit 1
fi
fi
...
@@ -314,7 +305,6 @@ pfSenseNanoBSDupgrade)
...
@@ -314,7 +305,6 @@ pfSenseNanoBSDupgrade)
rm-f /var/run/firmwarelock.dirty
rm-f /var/run/firmwarelock.dirty
rm-f /var/run/firmware.lock
rm-f /var/run/firmware.lock
umount /tmp/$GLABEL_SLICE
umount /tmp/$GLABEL_SLICE
/usr/local/etc/rc.conf_mount_ro
exit 1
exit 1
fi
fi
echo"">> /conf/upgrade_log.txt
echo"">> /conf/upgrade_log.txt
...
@@ -362,7 +352,6 @@ pfSenseNanoBSDupgrade)
...
@@ -362,7 +352,6 @@ pfSenseNanoBSDupgrade)
touch /conf/needs_package_sync
touch /conf/needs_package_sync
# remount /cf ro
# remount /cf ro
/usr/local/etc/rc.conf_mount_ro
/bin/sync
/bin/sync
echo"NanoBSD Firmware upgrade is complete. Rebooting in 10 seconds.">> /conf/upgrade_log.txt 2>&1
echo"NanoBSD Firmware upgrade is complete. Rebooting in 10 seconds.">> /conf/upgrade_log.txt 2>&1
...
@@ -381,7 +370,6 @@ pfSenseupgrade)
...
@@ -381,7 +370,6 @@ pfSenseupgrade)
# Sanity check - bail early if there's no firmware file!
# Sanity check - bail early if there's no firmware file!
if[!-r$IMG];then
if[!-r$IMG];then
echo"2nd parameter has not been passed or file does not exist. Exiting.">> /conf/upgrade_log.txt 2>&1
echo"2nd parameter has not been passed or file does not exist. Exiting.">> /conf/upgrade_log.txt 2>&1
echosprintf(gettext('Successfully reverted to timestamp %1$s with description "%2$s".'),date(gettext("n/j/y H:i:s"),$thisbackup['time']),$thisbackup['description']);
echosprintf(gettext('Successfully reverted to timestamp %1$s with description "%2$s".'),date(gettext("n/j/y H:i:s"),$thisbackup['time']),$thisbackup['description']);
...
@@ -78,7 +77,6 @@ function restore_history_backup($number) {
...
@@ -78,7 +77,6 @@ function restore_history_backup($number) {
}else{
}else{
echogettext("Unable to revert to the selected configuration.")."\n";
echogettext("Unable to revert to the selected configuration.")."\n";
$savemsg=sprintf(gettext('Deleted backup with timestamp %1$s and description "%2$s".'),date(gettext("n/j/y H:i:s"),$_POST['rmver']),$confvers[$_POST['rmver']]['description']);
$savemsg=sprintf(gettext('Deleted backup with timestamp %1$s and description "%2$s".'),date(gettext("n/j/y H:i:s"),$_POST['rmver']),$confvers[$_POST['rmver']]['description']);