NoPaste

rc.local

von Anonymous

SNIPPET_TEXT:
  1. i!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13.  
  14. #Route vergeben
  15. route add default gw 192.168.178.1
  16.  
  17. #Nameserver
  18. #tte.de/grep -vq 192.168.178.1 /etc/resolv.conf
  19. #echo nameserver 192.168.178.1 >> /etc/resolv.conf
  20. echo nameserver 85.214.73.63  >> /etc/resolv.conf
  21.  
  22. exit 0

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN