From 7a79c4f037997aa07599e9f0fad7e3a00e58e1ef Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 4 Nov 2005 22:13:19 +0000 Subject: Recompile for FreeBSD 6 --- usr/local/sbin/kbdcheck | Bin 4964 -> 3368 bytes usr/local/sbin/ppp-linkup | 3 +-- usr/local/sbin/update_file.sh | 17 ++++------------- 3 files changed, 5 insertions(+), 15 deletions(-) (limited to 'usr') diff --git a/usr/local/sbin/kbdcheck b/usr/local/sbin/kbdcheck index d2f204d..500fc1c 100755 Binary files a/usr/local/sbin/kbdcheck and b/usr/local/sbin/kbdcheck differ diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index 8e86894..01bca8e 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -18,5 +18,4 @@ fi # let the configuration system know that the # WAN IP address has changed -/etc/rc.newwanip & - +/etc/rc.newwanip diff --git a/usr/local/sbin/update_file.sh b/usr/local/sbin/update_file.sh index d8a5e8f..5e1e51d 100755 --- a/usr/local/sbin/update_file.sh +++ b/usr/local/sbin/update_file.sh @@ -17,8 +17,6 @@ if [ -z $1 ];then exit 0 fi -/etc/rc.conf_mount_rw - if [ "$1" = "-all" ];then echo "This will update all .php .js and .inc pages on your pfsense box!" FMATCHES=`find /etc/inc/ /usr/local/www /usr/local/captiveportal -name "*.php" -or -name "*.inc" -or -name "*.js"` @@ -29,24 +27,17 @@ else FMATCHES=$1 fi -for file in $FMATCHES ;do +/etc/rc.conf_mount_rw +for file in $FMATCHES ;do if [ ! -z $2 ];then rev=$2 echo "trying to fetch $rev $file" else echo "trying to fetch latest $file" fi - - /usr/bin/fetch -T 60 -q -o "$file" "$baseurl$file$urlrev$rev$urlcon;only_with_tag=RELENG_1" - - if [ $? -eq 0 ]; then - echo "File updated." - else - echo "An error occured during update." - fi - + #echo fetch -o "$file" "$baseurl$file$urlrev$rev$urlcon" + `which fetch` -o "$file" "$baseurl$file$urlrev$rev$urlcon" done /etc/rc.conf_mount_ro - -- cgit v1.1