What's new

init scripts are not being executed on startup

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

agneev

Regular Contributor
Hello all,

I'm running Voxel Firmware V9.2.5.2.37SF-HW on my RBK50.

A couple of days ago, I ran opkg update and opkg upgrade. Since then, I have noticed that scripts that are located in /etc/init.d/ do not start during boot anymore.

I have even created a simple script that starts these services and put it in /opt/scripts and it seems that this does not work either.

Any help is appreciated, thanks

- agneev
 
Hello all,

I'm running Voxel Firmware V9.2.5.2.37SF-HW on my RBK50.

A couple of days ago, I ran opkg update and opkg upgrade. Since then, I have noticed that scripts that are located in /etc/init.d/ do not start during boot anymore.

I have even created a simple script that starts these services and put it in /opt/scripts and it seems that this does not work either.

Any help is appreciated, thanks

- agneev
Hello :)

Do you mean in /opt/etc/init.d/?

1) Check that you have /tmp/mnt/sda1/autorun/scripts/post-mount.sh on you optware disk, with this inside:
Code:
# Start optware services if /opt is linked
if [ -x /opt/etc/init.d/rc.unslung ]; then

    # Start optware services
    /opt/etc/init.d/rc.unslung start
fi

2) Then check that subdirectories in /opt are linked : ls -l /opt, that should give you something like this (more or less):
Code:
root@HERMES:/tmp/mnt/sda1/autorun/scripts$ ls -l /opt
lrwxrwxrwx    1 root     root           25 Dec 23 12:03 bin -> /tmp/mnt/sda1/entware/bin
lrwxrwxrwx    1 root     root           20 Dec 23 12:03 bolemo -> /tmp/mnt/sda1/bolemo
lrwxrwxrwx    1 root     root           25 Dec 23 12:03 etc -> /tmp/mnt/sda1/entware/etc
-rw-r--r--    1 root     root          855 Jan  1  1970 filelist
lrwxrwxrwx    1 root     root           26 Dec 23 12:03 home -> /tmp/mnt/sda1/entware/home
drwxr-xr-x    2 root     root          224 Jan  1  1970 leafp2p
lrwxrwxrwx    1 root     root           25 Dec 23 12:03 lib -> /tmp/mnt/sda1/entware/lib
lrwxrwxrwx    1 root     root           29 Dec 23 12:03 libexec -> /tmp/mnt/sda1/entware/libexec
drwxr-xr-x    4 root     root          648 Jan  1  1970 rcagent
drwxr-xr-x    2 root     root          296 Jan  1  1970 remote
lrwxrwxrwx    1 root     root           26 Dec 23 12:03 root -> /tmp/mnt/sda1/entware/root
lrwxrwxrwx    1 root     root           26 Dec 23 12:03 sbin -> /tmp/mnt/sda1/entware/sbin
lrwxrwxrwx    1 root     root           29 Dec 23 12:03 scripts -> /tmp/mnt/sda1/entware/scripts
lrwxrwxrwx    1 root     root           27 Dec 23 12:03 share -> /tmp/mnt/sda1/entware/share
lrwxrwxrwx    1 root     root           25 Dec 23 12:03 tmp -> /tmp/mnt/sda1/entware/tmp
lrwxrwxrwx    1 root     root           25 Dec 23 12:03 usr -> /tmp/mnt/sda1/entware/usr
lrwxrwxrwx    1 root     root           25 Dec 23 12:03 var -> /tmp/mnt/sda1/entware/var
-rw-r--r--    1 root     root            9 Jan  1  1970 version
drwxr-xr-x    3 root     root          504 Jan  1  1970 xagent

3) Then check that you do have /opt/etc/init.d/rc.unslung
rc.unslug
is the script that runs everything executable inside /opt/etc/init.d/.
 

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!
Top