* imported qemu/hotfix-glibc-2.41.patch
[t2sde.git] / package / network / ppp / ip-up
blob5f6139668a6d8c565b9beb89a4387d76f7faea2a
1 #!/bin/sh
2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # T2 SDE: package/*/ppp/ip-up
4 # Copyright (C) 2022 The T2 SDE Project
5 #
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
14 if [ "$DNS1" -o "$DNS2" ]; then
15 sed -i -e '/.*# automatically added/d' /etc/resolv.conf
17 echo "# automatically added by $0 during PPP connect ..."
18 [ "$DNS1" ] && echo "nameserver $DNS1 # automatically added"
19 [ "$DNS2" ] && echo "nameserver $DNS2 # automatically added"
20 ) >> /etc/resolv.conf