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.

12 lines
381 B

  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. # install cleanup script that executes every 10 min
  4. boot() {
  5. test -f /etc/crontabs/root || touch /etc/crontabs/root
  6. grep -q '/usr/share/wginstaller/wg.sh cleanup_wginterfaces' /etc/crontabs/root || {
  7. echo "*/10 * * * * /usr/share/wginstaller/wg.sh cleanup_wginterfaces" >> /etc/crontabs/root
  8. }
  9. /etc/init.d/cron restart
  10. }