It is much better to place all your commands in a shell script and then call the shell script from the rc.local
/usr/local/bin/startmyapp.sh
- Code: Select all
#!/bin/bash
/sbin/ifconfig eth0:1 192.168.10.2 2>&1 /dev/null
Now add your script to the startup
/etc/rc.local
- Code: Select all
/usr/local/bin/startmyapp.sh