diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-07 21:29:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-07 21:29:59 +0200 |
commit | 92ee1314c1c4f6a93bbca3c4ffaeddc51b5609af (patch) | |
tree | 3ca44c4fa2ad6f8bc4b12d1191d49871cbfe3196 /package/ppp/files/etc/ppp/ip-down.d | |
parent | 0c0581d7172675307053f0097130c01a7898c81d (diff) |
handle resolv.conf and ntp for pppoe network setup correctly
Diffstat (limited to 'package/ppp/files/etc/ppp/ip-down.d')
-rw-r--r-- | package/ppp/files/etc/ppp/ip-down.d/01-resolver | 8 | ||||
-rwxr-xr-x | package/ppp/files/etc/ppp/ip-down.d/umts | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/package/ppp/files/etc/ppp/ip-down.d/01-resolver b/package/ppp/files/etc/ppp/ip-down.d/01-resolver new file mode 100644 index 000000000..78eaea035 --- /dev/null +++ b/package/ppp/files/etc/ppp/ip-down.d/01-resolver @@ -0,0 +1,8 @@ +#!/bin/sh +if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then + if [ -f /etc/ppp/resolv.prev ]; then + cp -f /etc/ppp/resolv.prev /etc/resolv.conf + else + rm -f /etc/resolv.conf + fi +fi diff --git a/package/ppp/files/etc/ppp/ip-down.d/umts b/package/ppp/files/etc/ppp/ip-down.d/umts deleted file mode 100755 index 6c812a782..000000000 --- a/package/ppp/files/etc/ppp/ip-down.d/umts +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -[ "$IF_USE_TEMPLATE" == "umts" ] || exit 0 - -# enable bit 3, disable bit 4 - i.e. UMTS-LED from blue to green -LED=$(cat /proc/sys/diag) -echo $(((LED | 16) ^ 16 | 8)) > /proc/sys/diag |