Server : Apache/2.4.58 (Ubuntu) System : Linux yumsem00.cafe24.com 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 User : root ( 0) PHP Version : 8.2.14 Disable Function : NONE Directory : /etc/ppp/ip-down.d/ |
Upload File : |
#!/bin/sh -e # exit if the resolvconf package is installed [ -x /sbin/resolvconf ] && exit 0 # follow any symlink to find the real file if [ -e /etc/resolv.conf ]; then REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf) else REALRESOLVCONF=/etc/resolv.conf fi # if an old resolv.conf file exists, restore it if [ -e $REALRESOLVCONF.pppd-backup.$PPP_IFACE ]; then mv -f $REALRESOLVCONF.pppd-backup.$PPP_IFACE $REALRESOLVCONF # restart nscd because resolv.conf has changed if [ -e /var/run/nscd.pid ]; then /etc/init.d/nscd restart || true fi fi exit 0