init HUP and static IP
Pete Scott <[email protected]>
| Newsgroups | gmane.linux.tomsrtbt |
|---|---|
| Message-ID | <20020502120923.MYPS17944.fep06-svc.ttyl.com@localhost> |
Hi Init HUP now works thanks Tom. Another question. How do I set a static IP that will be used if there is no DHCP server? I used to edit IPADDR, NETMASK, GATEWAY in settings.s but they're not there anymore also adding them to settings.s or rc.custom.gz doesn't help. It seems that dhcpcd--.lua sets an IP of 1.1.1.1 if there's no DHCP so I could edit that. But is there a better way? I tried: if [ "$IPADDR" = "1.1.1.1" ] then IPADDR=192.168.0.51 NETMASK=255.255.255.0 GATEWAY=192.168.0.1 fi At the start of rc.custom.gz but that didn't help either. What am I missing? Thanks for any help. Pete BTW I'm using 2.0.96