What's new

services-stop not working

bmn1

Senior Member
Hello,

I created a file "/jffs/scripts/services-stop" that should execute the file "/jffs/scripts/fake-hwclock save", but this isn't working.

Manually starting the script works, it creates a file /jffs/fake-hwclock.data and appends the line correctly.

After rebooting, "/jffs/scripts/services-start" gets executed, but services-stop doesn't even show up in my log files.

/jffs/scripts/services-stop:
Code:
#!/bin/sh
/jffs/scripts/fake-hwclock save

Permissions were set with:
chmod a+rx /jffs/scripts/*

Edit: I'm using an Asus RT-AC68U with the latest Asuswrt-Merlin 380.57
 
Sorry for bumping my thread.

Is this a bug in the latest Asuswrt firmware or did I something wrong?
 
I would check the content of fate-hw lock. Maybe you can post here?
 
Can't post it right now, since I'm not at home.
Content was created fine when I ran it manually.

The problem is the script doesn't get started at restarting or shutting the router down and on again.

Edit: I thought this is a core functionality of Asuswrt-Merlin, hoped to get an idea from Merlin. :)
 
Last edited:
Solved it.

I'm really sorry for opening this thread, problem was following:
I saved the scripts with Notepad++ as unix file.
Creating them with vi made it work!
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top