Hi,
You can try to use this command to find your IP-address:
/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
I haven't tried it in the startup script because I'm not at home, but it should work.
Search found 4 matches
- Fri Mar 21, 2008 8:40 am
- Forum: Linux
- Topic: Start at boot in Ubuntu
- Replies: 11
- Views: 9026
- Sun Mar 09, 2008 1:12 pm
- Forum: Linux
- Topic: Start at boot in Ubuntu
- Replies: 11
- Views: 9026
Re: Start at boot in Ubuntu
Hi,
Look for the following lines in the startscript:
and change it to
Look for the following lines in the startscript:
Code: Select all
echo -n "Starting $TWONKYSRV ... "
$TWONKYSRV -D -inifile "${INIFILE}"
rc_status -v
Code: Select all
echo -n "Starting $TWONKYSRV ... "
$TWONKYSRV -D -ip xxx.xxx.xxx.xxx -inifile "${INIFILE}"
rc_status -v
- Sat Mar 08, 2008 2:10 pm
- Forum: Linux
- Topic: Start at boot in Ubuntu
- Replies: 11
- Views: 9026
Re: Start at boot in Ubuntu
Hi,
Thanks a lot! That solved my problems.
Thanks a lot! That solved my problems.
- Tue Feb 19, 2008 10:04 pm
- Forum: Linux
- Topic: Start at boot in Ubuntu
- Replies: 11
- Views: 9026
Start at boot in Ubuntu
I've installed the latest twonky server on ubuntu 7.10, but I have some problems getting it to start automatically when the server boots. The twonkyserver script is placed in /etc/init.d and I have installed it in the default runlevels using update-rc.d. After the server is reebooted there are two t...