Log in
Register
Menu
Log in
Register
Home
What's new
Latest activity
Authors
Forums
New posts
Search forums
What's new
New posts
Latest activity
Members
Current visitors
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Linux Based Receivers
Dreambox Support Forum
Add Telnet Command To Box Start Up
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="compufunk" data-source="post: 518706" data-attributes="member: 288741"><p>Hi,</p><p>I managaed to get a script to run at startup last night, You were right to look at /etc/init.d/bootup.</p><p></p><p>I didnt try the command you are trying to get working, I just tested with some other commands. For the sake of tidiness i created a new file to run the commands I wanted then added the path to that file in /etc/init.d/bootup. This is cleaner because you only have one line added to the /etc/init.d/bootup file and you can modify the newly created file to do whatever you want at a later stage.</p><p></p><p>Make a backup of /etc/init.d/bootup</p><p></p><p>Create a new file to run your commands.</p><p>[code]touch /home/root/boot_script[/code] Add a few lines to the file using your favourite application.</p><p>I used the following.</p><p></p><p>[code]echo "this file was created at boot time on " > /tmp/boot_script_output</p><p>date >> /tmp/boot_script_output</p><p>[/code] Set the executable bit on the file.</p><p>[code]chmod 755 /home/root/boot_script[/code] Add the path to the script to a new line in /etc/init.d/bootup.</p><p>[code]echo /home/root/boot_script >> /etc/init.d/bootup[/code] Reboot the dreambox.</p><p></p><p>When the box has rebooted you should find a file called boot_script_output in the /tmp directory. Open it up, it should read something like</p><p>[code]this file was created at boot time on </p><p>Fri May 23 11:04:14 IST 2008</p><p>[/code] Add your own commands to the /home/root/boot_script file. If you are still having trouble I would suggest you redirect the output of your commands to a file. That way you can see any errors that were generated e.g.</p><p>[code] YourCommand >> /tmp/boot_script_output</p><p>[/code] To make sure your settings are not being overridden by something else in the boot sequence, just execute the script manually by typing the file path in at the command prompt. . </p><p></p><p>[code]/home/root/boot_script[/code] If running the script manually doesn't work then its not going to at boot.</p><p></p><p>Hope this helps.</p></blockquote><p></p>
[QUOTE="compufunk, post: 518706, member: 288741"] Hi, I managaed to get a script to run at startup last night, You were right to look at /etc/init.d/bootup. I didnt try the command you are trying to get working, I just tested with some other commands. For the sake of tidiness i created a new file to run the commands I wanted then added the path to that file in /etc/init.d/bootup. This is cleaner because you only have one line added to the /etc/init.d/bootup file and you can modify the newly created file to do whatever you want at a later stage. Make a backup of /etc/init.d/bootup Create a new file to run your commands. [code]touch /home/root/boot_script[/code] Add a few lines to the file using your favourite application. I used the following. [code]echo "this file was created at boot time on " > /tmp/boot_script_output date >> /tmp/boot_script_output [/code] Set the executable bit on the file. [code]chmod 755 /home/root/boot_script[/code] Add the path to the script to a new line in /etc/init.d/bootup. [code]echo /home/root/boot_script >> /etc/init.d/bootup[/code] Reboot the dreambox. When the box has rebooted you should find a file called boot_script_output in the /tmp directory. Open it up, it should read something like [code]this file was created at boot time on Fri May 23 11:04:14 IST 2008 [/code] Add your own commands to the /home/root/boot_script file. If you are still having trouble I would suggest you redirect the output of your commands to a file. That way you can see any errors that were generated e.g. [code] YourCommand >> /tmp/boot_script_output [/code] To make sure your settings are not being overridden by something else in the boot sequence, just execute the script manually by typing the file path in at the command prompt. . [code]/home/root/boot_script[/code] If running the script manually doesn't work then its not going to at boot. Hope this helps. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Linux Based Receivers
Dreambox Support Forum
Add Telnet Command To Box Start Up
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top