/init.d/pppd-dns
http://github.com/brinkman83/bashrc · Shell · 16 lines · 2 code · 2 blank · 12 comment · 1 complexity · 24aa351f9dac83a4214556b55b8f2070 MD5 · raw file
- #!/bin/sh -e
- ### BEGIN INIT INFO
- # Provides: pppd-dns
- # Required-Start: $local_fs gdm
- # Required-Stop:
- # Default-Start: 1 2 3 4 5
- # Default-Stop:
- # Short-Description: Restore resolv.conf if the system crashed.
- ### END INIT INFO
- #
- # Restore /etc/resolv.conf if the system crashed before the ppp link
- # was shut down.
- [ -x /etc/ppp/ip-down.d/0000usepeerdns ] \
- && exec /etc/ppp/ip-down.d/0000usepeerdns