Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-06 23:45:09 +02:00
parent 36cd9d8dd9
commit f9b46fbd6b

View File

@ -79,12 +79,12 @@ is_auto_mode() {
# if usb0 is up, we're in MANU # if usb0 is up, we're in MANU
if is_interface_up usb0; then if is_interface_up usb0; then
return 1 return 0
fi fi
# if eth0 is up (for other boards), we're in MANU # if eth0 is up (for other boards), we're in MANU
if is_interface_up eth0; then if is_interface_up eth0; then
return 1 return 0
fi fi
# no override, but none of the interfaces is up -> AUTO # no override, but none of the interfaces is up -> AUTO
@ -105,12 +105,12 @@ is_auto_mode_no_delete() {
# if usb0 is up, we're in MANU # if usb0 is up, we're in MANU
if is_interface_up usb0; then if is_interface_up usb0; then
return 1 return 0
fi fi
# if eth0 is up (for other boards), we're in MANU # if eth0 is up (for other boards), we're in MANU
if is_interface_up eth0; then if is_interface_up eth0; then
return 1 return 0
fi fi
# no override, but none of the interfaces is up -> AUTO # no override, but none of the interfaces is up -> AUTO