Script at boot?

p1nkm00n

Vu+ Newbie
Simple to ask but probably hard to solve...
How to start a script at boot?
Cron manager needs hours and minutes so it isn't good for me.

Thanks!
 

Matrix10

Administrator
I think you can start script from bootup file
/etc/init.d/bootup

example :

#Blackhole
echo 33 > /proc/progress
[ -e "/usr/bin/xxxx_script.sh" ] && /usr/bin/xxxx_script.sh
 

p1nkm00n

Vu+ Newbie
BINGO! It seems to work now....! Thank you!

I should edit my post. Not working.

Code:
(...)
 
#Blackhole
echo 31 > /proc/progress
[ -e "/usr/bin/bhmount" ] && /usr/bin/bhmount
 
#Blackhole
echo 32 > /proc/progress
[ -e "/usr/bin/.Bhautoswap" ] && /usr/bin/.Bhautoswap
 
[ -f /etc/shadow ] && /bin/true || touch /etc/shadow
 
#Blackhole
echo 33 > /proc/progress
[ -e "/usr/bin/script00.sh" ] && /usr/bin/script00.sh

and my script

Code:
#!/bin/sh
while [ 1 ]; do
/bin/ping -c 1 -s 1 88.149.128.3
sleep 2
done

:wallbash:
 

Tamaki

Administrator
Anyway, script doesn't start using bootup.
Working with telnet or cron manager...
If the script is ok and you put in the right way in bootup file it must work.
I put there my startup script.

Which is the name of your script and where is it?
 

Matrix10

Administrator
Anyway, script doesn't start using bootup.
Working with telnet or cron manager...

I think that your script does not work because the network still does not work,
at the time the Script start.

You can try to start your script using this script name
/usr/bin/enigma2_pre_start.sh

Then the script is launched from the enigma2.sh

Or start script by adding the line in to enigma2.sh in /usr/bin

example :

#start script
if [ -x /usr/bin/scriptxxx.sh ]; then
/usr/bin/scriptxxx.sh
fi

I have not tested this and I am not a Linux expert but I think it can.
 

p1nkm00n

Vu+ Newbie
I think that your script does not work because the network still does not work,
at the time the Script start.

You can try to start your script using this script name
/usr/bin/enigma2_pre_start.sh

Then the script is launched from the enigma2.sh

Or start script by adding the line in to enigma2.sh in /usr/bin

example :

#start script
if [ -x /usr/bin/scriptxxx.sh ]; then
/usr/bin/scriptxxx.sh
fi

I have not tested this and I am not a Linux expert but I think it can.

Just tested the first one...no result: locked in "starting gui" so I deleted enigma2_pre_start.sh


If the script is ok and you put in the right way in bootup file it must work.
I put there my startup script.

Which is the name of your script and where is it?

This solution doesn't work because my script...
Code:
#!/bin/sh
while [ 1 ]; do
/bin/ping -c 1 -s 1 88.149.128.3
sleep 2
done
...has a beginnigng but not end, so vu+ stays in "BOOTING".

Maybe it needs a "sleep" of a couple of minutes, so it can boot completely and, after that, start my ping scirpt...but don't know how to make it.
 

p1nkm00n

Vu+ Newbie
I think that your script does not work because the network still does not work,
at the time the Script start.

You can try to start your script using this script name
/usr/bin/enigma2_pre_start.sh

Then the script is launched from the enigma2.sh

Or start script by adding the line in to enigma2.sh in /usr/bin

example :

#start script
if [ -x /usr/bin/scriptxxx.sh ]; then
/usr/bin/scriptxxx.sh
fi

I have not tested this and I am not a Linux expert but I think it can.

And the second one is the same: script works (my connection is stably in hsdpa due to pings) but vu+ shows "starting gui" and remote doesn't work anymore.

Thank you anyway
 
Top