phyrexianhulk
New Around Here
Hello everyone and thanks for your time,
I have an AC68U with merlin 3.0.0.4.374.43_2 running. Everything works quite well, except that the user scripts within /jffs/scripts/ do not get executed on a reboot.
This is the contents of /jffs/scripts/:
Each of the scripts has this as its first entry, with the postfix according to its own name:
When I execute them manually the logs/ directory fills up quite nicely:
However, after a reboot there are no new logs and the scripts do not get executed.
Am I doing something wrong? Did I miss something?
Thank you for your help!
I have an AC68U with merlin 3.0.0.4.374.43_2 running. Everything works quite well, except that the user scripts within /jffs/scripts/ do not get executed on a reboot.
This is the contents of /jffs/scripts/:
Code:
admin@MCP:/jffs/scripts# ls -lisha
2 0 drwxr-xr-x 4 admin root 0 Aug 23 10:15 .
1 0 drwxr-xr-x 6 admin root 0 Aug 23 10:21 ..
808 1 -rwxrwxrwx 1 admin root 902 Aug 17 20:55 backup.sh
747 0 -rwxrwxrwx 1 admin root 439 Aug 23 10:18 firewall-start
906 0 -rwxrwxrwx 1 admin root 268 Aug 23 10:16 init-start
894 0 drwxrwxrwx 2 admin root 0 Aug 23 10:15 logs
826 0 -rwxrwxrwx 1 admin root 241 Aug 23 10:17 services-start
769 0 -rwxrwxrwx 1 admin root 357 Aug 23 10:17 wan-start
Each of the scripts has this as its first entry, with the postfix according to its own name:
Code:
#!/bin/sh
DATE=$(date +"%Y-%m-%d-%H%M%S")
mkdir -p logs
touch logs/$DATE-firewall-start
When I execute them manually the logs/ directory fills up quite nicely:
Code:
admin@MCP:/jffs/scripts/logs# ls -lisha
894 0 drwxrwxrwx 2 admin root 0 Aug 23 10:31 .
2 0 drwxr-xr-x 4 admin root 0 Aug 23 10:15 ..
922 0 -rw-rw-rw- 1 admin root 0 Aug 23 10:31 2014-08-23-103107-init-start
923 0 -rw-rw-rw- 1 admin root 0 Aug 23 10:31 2014-08-23-103112-wan-start
However, after a reboot there are no new logs and the scripts do not get executed.
Am I doing something wrong? Did I miss something?
Thank you for your help!