I have a server python script.
How to auto execute this script for each reboot?
I added the python command in this file /jffs/scripts/post-mount
After rebooting the router and ssh for checking running process with ps command,
no "python /mnt/sda1/py/server.py" is running.
My router is asus n66u
How to auto execute this script for each reboot?
I added the python command in this file /jffs/scripts/post-mount
Code:
#!/bin/sh
if [ $1 = "/tmp/mnt/sda1" ]
then
ln -sf $1/entware /tmp/opt
python /mnt/sda1/py/server.py
fi
After rebooting the router and ssh for checking running process with ps command,
no "python /mnt/sda1/py/server.py" is running.
My router is asus n66u
Last edited: