tonysamson
Regular Contributor
Hi,
This may be a dumb question but I really could not make a User Script work. I did the following:
then I typed the following:
then I
When I'd enter
in the terminal. The script will run. But, if I'd restart the router, I think the script doesn't run because the swap isn't mounted when I enter:
the swap becomes 0 (zero) again. I also noticed that when I run
the script will run but when I run
without the file path, I get the above return. Please help.. I really need the swap for my Rsync script.
This may be a dumb question but I really could not make a User Script work. I did the following:
Code:
admin@TheVault:/jffs/scripts# nano init-start
then I typed the following:
Code:
#!/bin/sh
swapon UUID=8979265a-d332-428b-984b-807a7b2704c9
then I
Code:
chmod a+rx /jffs/scripts/init-start
When I'd enter
Code:
/jffs/scripts/init-start
in the terminal. The script will run. But, if I'd restart the router, I think the script doesn't run because the swap isn't mounted when I enter:
Code:
free
the swap becomes 0 (zero) again. I also noticed that when I run
Code:
/jffs/scripts/init-start
the script will run but when I run
Code:
admin@TheVault:/jffs/scripts# init-start
-sh: init-start: not found
without the file path, I get the above return. Please help.. I really need the swap for my Rsync script.