Optware / Optware-ng

279 stars 52 forks source link

Bootstrap script enhacements #163

Open PiotrC1 opened 8 years ago

PiotrC1 commented 8 years ago

I'm not sure if this is a right place, but many packages place their startup scripts in /opt/etc/init.d but there is no tool to start them up at rooter boot-up. I created my own /opt/etc/init.d/rc.unslung script based on those taken from this manual and placed it as well as my /opt/sbin/after-mount.sh in script executed after USB-stick mounting. Mentioned installation script creates and mounts also swap file - which in my case (Asus RT-AC68U) is not necessary, but for other routers with less RAM might be usefull.

alllexx88 commented 8 years ago

We can add such generation of similar script to bootstrap script. However, not all Optware rc scripts work the same way: supporting start/stop/restart commands: some of them only start the service regardless of the args. I try to make scripts that I add as good as I can, but there're lots of old inherited packages, and reviewing them all isn't a task for one person (or even few people).

satfreak commented 6 years ago

If you check the internet, there are so many examples how to get it to work. Just look on optware.