Code Sample |
#!/bin/bash # put other system startup command here /sbin/syslogd loadkeys pl xmodmap /usr/share/xmodmap/xmodmap.pl ifconfing eth0 192.168.0.2 route add default gw 192.168.0.255 echo nameserver 194.204.159.1 > /etc/resolv.comf ifup eth0 |
Code Sample |
#/opt/bootlocal.sh syslogd: Could not connect to socket /dev/log: Address already in use Loading /usr/share/keymaps/i386/qwerty/pl/kmap.gz Keymap 0: Permission denied Keymap 1: Permission denied Keymap 2: Permission denied Keymap 3: Permission denied Keymap 4: Permission denied KDSKBENT: Operation not permitted loadkeys: could not deallocate keymap 5 /opt/bootlocal.sh: line 6: ifconfig: command not found SIOCADDRT: Operation not permitted /opt/bootlocal.sh: line 8 /etc/resolv.conf: Permission deniad ifup: failed to open statefile /etc/network/ifstate: Permission denied |
Quote |
#!/bin/ash # put other system startup command here /sbin/syslogd loadkeys pl xmodmap /usr/share/xmodmap/xmodmap.pl ifconfig eth0 192.168.0.2 up route add default gw 192.168.0.255 |
Quote (curaga @ May 03 2007,12:05) |
ash is there 'cause it's a lot faster than bash, echo is not needed as you have a hd-install (everything is permanent) I think this'll let your net work automatically... |
Code Sample |
SIOCADDRT: Network is unreachable |
Code Sample |
xmodmap /usr/share/xmodmap/xmodmap.pl |