/init.d/pppd-dns

http://github.com/brinkman83/bashrc · Shell · 16 lines · 2 code · 2 blank · 12 comment · 1 complexity · 24aa351f9dac83a4214556b55b8f2070 MD5 · raw file

  1. #!/bin/sh -e
  2. ### BEGIN INIT INFO
  3. # Provides: pppd-dns
  4. # Required-Start: $local_fs gdm
  5. # Required-Stop:
  6. # Default-Start: 1 2 3 4 5
  7. # Default-Stop:
  8. # Short-Description: Restore resolv.conf if the system crashed.
  9. ### END INIT INFO
  10. #
  11. # Restore /etc/resolv.conf if the system crashed before the ppp link
  12. # was shut down.
  13. [ -x /etc/ppp/ip-down.d/0000usepeerdns ] \
  14. && exec /etc/ppp/ip-down.d/0000usepeerdns