mirror of
https://github.com/outbackdingo/firmware.git
synced 2026-01-27 18:18:57 +00:00
Overlay: add check for eth0 interface
This commit is contained in:
@@ -11,7 +11,7 @@ set_wireless() {
|
||||
elif $path/modem "$dev"; then
|
||||
ifup usb0
|
||||
fi
|
||||
ifconfig eth0 "${net:-192.168.2.10}"
|
||||
[ -e /sys/class/net/eth0 ] && ifconfig eth0 "${net:-192.168.2.10}"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
@@ -36,7 +36,7 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
|
||||
restart|reload)
|
||||
restart)
|
||||
"$0" stop
|
||||
"$0" start
|
||||
;;
|
||||
@@ -44,6 +44,7 @@ case "$1" in
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user