User Tools

Site Tools


synology:pihole_synology

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
synology:pihole_synology [2020/07/15 14:17] – [Update Pi-hole] Wulf Rajeksynology:pihole_synology [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 95: Line 95:
 vi /usr/local/etc/rc.d/S99pihole.sh vi /usr/local/etc/rc.d/S99pihole.sh
 </code> </code>
-<code>+<code - /usr/local/etc/rc.d/S99pihole.sh>
 #!/bin/sh #!/bin/sh
  
Line 101: Line 101:
  
 case $1 in case $1 in
-        start) +    start) 
-            /var/packages/debian-chroot/scripts/start-stop-status start +        /var/packages/debian-chroot/scripts/start-stop-status start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start 
-        ;; +    ;; 
-        stop) +    stop) 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop 
-                /var/packages/debian-chroot/scripts/start-stop-status stop +        /var/packages/debian-chroot/scripts/start-stop-status stop 
-        ;; +    ;; 
-        restart) +    restart) 
-                $0 stop +        $0 stop 
-                sleep 1 +        sleep 1 
-                $0 start +        $0 start 
-        ;; +    ;; 
-        *) +    *) 
-                echo "Usage: $0 start|stop|restart" +        echo "Usage: $0 start|stop|restart" 
-        ;;+    ;;
 esac esac
 </code> </code>
Line 164: Line 164:
 cd /etc/.pihole cd /etc/.pihole
 git pull git pull
- 
-#or 
-curl -L https://install.pi-hole.net | bash /dev/stdin --i_do_not_follow_recommendations 
- 
 </code> </code>
  
synology/pihole_synology.1594819035.txt.gz · Last modified: (external edit)