diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 20:13:45 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 20:13:45 -0400 |
commit | 52848935ecf4c159e37fdb6cc1a5f69c1aeb327b (patch) | |
tree | 077eb28926f77b5f7d834ff53ac9c94eff618fb8 /etc | |
parent | 462242d45c222d8997b262d8109b36e1891d01dc (diff) | |
download | pfsense-52848935ecf4c159e37fdb6cc1a5f69c1aeb327b.zip pfsense-52848935ecf4c159e37fdb6cc1a5f69c1aeb327b.tar.gz |
Add NanoBSD support
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.firmware_auto | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto index 2682699..be5da91 100755 --- a/etc/rc.firmware_auto +++ b/etc/rc.firmware_auto @@ -6,6 +6,8 @@ FMBASEURL=$1 FMFILENAME=$2 FETCHFILENAME=$1/$2 +product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4` + # wait 5 seconds before beginning sleep 5 @@ -43,17 +45,24 @@ fi if [ "$PMD" = "$MD" ]; then echo "MD5's match." | logger -p daemon.info -i -t AutoUpgrade - echo "Beginning pfSense upgrade." | wall + echo "Beginning ${product} upgrade." | wall if [ "$PLATFORM" = "net45xx" ]; then /usr/local/bin/php /etc/rc.conf_mount_rw fi if [ "$PLATFORM" = "wrap" ]; then /usr/local/bin/php /etc/rc.conf_mount_rw fi + if [ "$PLATFORM" = "nanobsd" ]; then + /usr/local/bin/php /etc/rc.conf_mount_rw + fi if [ -r "/tmp/custom.tgz" ]; then sh /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz /tmp/custom.tgz else - sh /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz + if [ "$PLATFORM" = "nanobsd" ]; then + sh /etc/rc.firmware pfSenseNanoBSDupgrade /tmp/latest.tgz + else + sh /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz + fi fi if [ "$PLATFORM" = "wrap" ]; then /bin/sync |