projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ppp: quote positional parameters when calling up/down scripts (closes: #5622)
[openwrt/openwrt.git]
/
package
/
ppp
/
files
/
etc
/
ppp
/
ip-down
diff --git
a/package/ppp/files/etc/ppp/ip-down
b/package/ppp/files/etc/ppp/ip-down
index 30151f426d7c4be5e2cdc7425d044f15b9bbd646..499dc59d6e0d7bf56c5345bd98b59412186aa16d 100755
(executable)
--- a/
package/ppp/files/etc/ppp/ip-down
+++ b/
package/ppp/files/etc/ppp/ip-down
@@
-1,4
+1,5
@@
#!/bin/sh
+. /etc/functions.sh
PPP_IFACE="$1"
PPP_TTY="$2"
PPP_SPEED="$3"
@@
-16,6
+17,6
@@
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
[ -d /etc/ppp/ip-down.d ] && {
for SCRIPT in /etc/ppp/ip-down.d/*
do
- [ -x "$SCRIPT" ] && "$SCRIPT"
$@
+ [ -x "$SCRIPT" ] && "$SCRIPT"
"$@"
done
}