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. #IP-Adresse vergeben
  15. #ifconfig wlan0 192.168.178.22 netmask 255.255.255.0 broadcast 192.168.178.255 up
  16. ifconfig eth0 192.168.178.22 netmask 255.255.255.0 broadcast 192.168.178.255 up
  17.  
  18. #Route vergeben
  19. route add default gw 192.168.178.1
  20.  
  21. #Nameserver
  22. #tte.de/grep -vq 192.168.178.1 /etc/resolv.conf
  23. #echo nameserver 85.214.73.63  >> /etc/resolv.conf
  24.  
  25. exit 0

Quellcode

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