Displaying 2 results from an estimated 2 matches for "vpn_load".
Did you mean:
pt_load
2000 Aug 21
0
Rewritten script /etc/init.d/tinc
...;$1"
for _tmp in 1 2 3 4; do
_fld=${_msk%%.*}
_msk=${_msk#*.}
while [ ${_fld} -ne 0 ]; do
_fld=$(((_fld << 1) & 255))
_LEN=$((_LEN + 1))
done
done
echo ${_LEN}
}
##############################################################################
# vpn_load () Loads VPN configuration
#
# $1 ... VPN to load
function vpn_load () {
CFG="$TCONF/$1/tinc.conf"
ERROR1=0
ERROR2=0
[ -f $CFG ] || { MSG="$CFG does not exist!"; return 1; }
# load TINCD config
DEV="$(grep -i -e '^[[:space:]]*TapDevice...
2000 Jun 16
1
RedHat initialization script and bash2
...atch to make it functional for both bash and bash2.
- Jamie
-------------- next part --------------
diff -uNr tinc-1.0pre2.org/redhat/tinc tinc-1.0pre2/redhat/tinc
--- tinc-1.0pre2.org/redhat/tinc Fri May 26 05:22:49 2000
+++ tinc-1.0pre2/redhat/tinc Thu Jun 15 17:30:00 2000
@@ -117,7 +117,7 @@
vpn_load () {
CFG="$TCONF/$1/tinc.conf"
- [ -f $CFG ] || { MSG="$CFG does not exist!"; return 1 }
+ [ -f $CFG ] || { MSG="$CFG does not exist!"; return 1; }
# load TINCD config
DEV="$(grep -i -e '^[[:space:]]*TapDevice' $CFG | sed 's/...