| Code Sample |
| ifconfig eth0 up |
| Code Sample |
| touch /usr/sbin/ethernet.setup |
| Quote |
#!/bin/bash # setting up eth0 with static ip ifconfig eth0 up ifconfig eth0 192.168.1.10 <---change this to whatever ip you want |
| Code Sample |
| chmod 700 /usr/sbin/ethernet.setup |
| Quote (realpc @ Oct. 21 2004,14:43) |
| thanks for this. did all you told me to and after a reboot i got a message just above the login prompt saying... /etc/rc5.d/S99bootlocal: line 4: /usr/sbin/ethernet.setup: permission denied. i assigned all permissions to the ethernet.setup file just in case (rwxrwxrwx) hmmm at least you are managing to get some response out of it! regards. steve. |
| Code Sample |
| cd /usr/sbin : ls -lah chown root:root /usr/sbin/ethernet.setup |