summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/sbin/kbdcheckbin4964 -> 3368 bytes
-rwxr-xr-xusr/local/sbin/ppp-linkup3
-rwxr-xr-xusr/local/sbin/update_file.sh17
3 files changed, 5 insertions, 15 deletions
diff --git a/usr/local/sbin/kbdcheck b/usr/local/sbin/kbdcheck
index d2f204d..500fc1c 100755
--- a/usr/local/sbin/kbdcheck
+++ b/usr/local/sbin/kbdcheck
Binary files 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
-
OpenPOWER on IntegriCloud