spacepaste

  1.  
  2. $ ls -l /etc/rc.local
  3. -rwxr-xr-x 1 root root 505 Aug 28 03:14 /etc/rc.local
  4. $ cat /etc/rc.local
  5. #!/bin/sh -e
  6. #
  7. # rc.local
  8. #
  9. # This script is executed at the end of each multiuser runlevel.
  10. # Make sure that the script will "exit 0" on success or any other
  11. # value on error.
  12. #
  13. # In order to enable or disable this script just change the execution
  14. # bits.
  15. #
  16. # By default this script does nothing.
  17. [ -x /usr/bin/numlockx ] && /usr/bin/numlockx on
  18. echo "`date`\tnumlock\t$?" >> rc.local.log 2>&1
  19. [ -x /sbin/ethtool ] && /sbin/ethtool -s eth0 wol g
  20. echo "`date`\twol on\t$?" >> rc.local.log 2>&1
  21. exit 0
  22. $ cat /etc/rc.local.log
  23. $
  24.