thelonelycoder
Part of the Furniture
I am having problems getting custom scripts to run in 378.53.
Over in http://www.snbforums.com/threads/adblocking-with-combined-hosts-file.15309/ in the Advanced method I am calling in services-start the following:
The problem are the last three lines, it runs the update-hosts.sh script.
This worked fine with prior Asuswrt-Merlin 378.52 but now on .53 it does not run anymore.
Strange as it seems: If I also add the following to post-mount along with the above services-start it works fine:
The double calling of update-hosts.sh in the scripts post-mount and services-start seem to do the trick.
If I remove the last three lines in one of the two scripts it will not work.
Any suggestion what could cause this?
Also, how would I best log it in the syslog, I am not sure how to activate logger for these entries.
Over in http://www.snbforums.com/threads/adblocking-with-combined-hosts-file.15309/ in the Advanced method I am calling in services-start the following:
Code:
#!/bin/sh
sleep 10
/opt/etc/init.d/rc.unslung start
cru a UpdateHosts "00 00 * * 5 /jffs/scripts/update-hosts.sh"
#!/bin/bash
sleep 5
source /jffs/scripts/update-hosts.sh
This worked fine with prior Asuswrt-Merlin 378.52 but now on .53 it does not run anymore.
Strange as it seems: If I also add the following to post-mount along with the above services-start it works fine:
Code:
#!/bin/sh
if [ $1 = "/tmp/mnt/sda1" ]
then
ln -sf $1/entware /tmp/opt
fi
#!/bin/bash
sleep 5
source /jffs/scripts/update-hosts.sh
If I remove the last three lines in one of the two scripts it will not work.
Any suggestion what could cause this?
Also, how would I best log it in the syslog, I am not sure how to activate logger for these entries.