busybox start init script after bootup
12,146
Most likely, your ppp daemon is dependent on something that gets started in rc.sysinit, and it tries to startup up before that dependency has completed loading. Take sawdust's suggestion - start your init.sh script (ppp) from rc.sysinit after everything else finishes.
Author by
user1320852
Updated on June 04, 2022Comments
-
user1320852 almost 2 years
i am running an embedded linux device with busybox. after boot i want to start the ppp connection and do other things. i want to run it when everything else has finished and the system is up.
my inittab looks like:
::sysinit:/bin/sh /etc/rc.d/rc.sysinit ::once:/bin/sh /flash/scripts/init.sh ::respawn:/sbin/getty -L ttyS0 115200 vt100
the script is executed and pppd get started but it fails. if i run the command manually after bootup, there is no problem at all. so i thought maybe its the runlevel?
-
sawdust over 11 yearsWhat happens when your script is invoked from the
/etc/rc.d/rc.sysinit
script (where daemons are normally started)? Have you tried to get details as to why pppd "fails"?
-