| | 164 | === Network tweaks === |
| | 165 | |
| | 166 | I don't know why usb0 network interface is not initialize correctly, and there's nothing in /etc/resolv.conf, so we need this in '''/etc/init.d/htcartemis''': |
| | 167 | |
| | 168 | {{{ |
| | 169 | #! /bin/sh |
| | 170 | case "$1" in |
| | 171 | start) |
| | 172 | echo "Running PESPIN init script" |
| | 173 | |
| | 174 | ifconfig usb0 192.168.2.202 >/log-pespin-ifconfig-exec 2>&1 |
| | 175 | |
| | 176 | echo "nameserver 209.67.222.222" > /etc/resolv.conf |
| | 177 | echo "nameserver 208.67.220.220" >> /etc/resolv.conf |
| | 178 | |
| | 179 | route add default gw 192.168.2.200 metric 8 |
| | 180 | |
| | 181 | ;; |
| | 182 | esac |
| | 183 | |
| | 184 | |
| | 185 | exit 0 |
| | 186 | }}} |
| | 187 | |
| | 188 | |
| | 189 | Then link it to runlevel 5: |
| | 190 | ln -s /etc/init.d/htcartemis /etc/rc5.d/S89htcartemis |
| | 191 | |
| | 192 | |