You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
557 B

  1. # sample startup script
  2. # configuration found in /etc/rc.local
  3. #
  4. # start logging
  5. #
  6. /usr/bin/logger -t rc.local "start rc.local processing"
  7. # set home directory
  8. #
  9. export HOME=/root
  10. # resize /tmp partition to 256 MB
  11. #
  12. /usr/bin/logger -t rc.local "resize /tmp partition to 256 MB"
  13. mount tmpfs /tmp -t tmpfs -o remount,nosuid,nodev,noatime,size=256M
  14. # start adblock script
  15. #
  16. /usr/bin/logger -t rc.local "start adblock script"
  17. /usr/bin/adblock-update.sh >/dev/null 2>&1
  18. # write log and exit
  19. #
  20. /usr/bin/logger -t rc.local "finish rc.local processing"
  21. exit 0