Skip to content

Commit

Permalink
ppp: add back ip-{up,down}.d support for now
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31860 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nbd committed May 26, 2012
1 parent 04288d0 commit 488a50c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package/ppp/files/lib/netifd/ppp-down
Expand Up @@ -4,3 +4,10 @@ PPP_IPPARAM="$6"
. /lib/netifd/netifd-proto.sh
proto_init_update "$IFNAME" 0
proto_send_update "$PPP_IPPARAM"

[ -d /etc/ppp/ip-down.d ] && {
for SCRIPT in /etc/ppp/ip-down.d/*
do
[ -x "$SCRIPT" ] && "$SCRIPT" "$@"
done
}
6 changes: 6 additions & 0 deletions package/ppp/files/lib/netifd/ppp-up
Expand Up @@ -14,3 +14,9 @@ proto_set_keep 1
}
proto_send_update "$PPP_IPPARAM"

[ -d /etc/ppp/ip-up.d ] && {
for SCRIPT in /etc/ppp/ip-up.d/*
do
[ -x "$SCRIPT" ] && "$SCRIPT" "$@"
done
}

0 comments on commit 488a50c

Please sign in to comment.