fix interface name
This commit is contained in:
parent
123548064e
commit
b498d2e74d
@ -19,11 +19,11 @@ if [ "$STATE" == "down" ]; then
|
|||||||
sudo ip link set macvlan0 down
|
sudo ip link set macvlan0 down
|
||||||
sudo ip link set macvlan1 down
|
sudo ip link set macvlan1 down
|
||||||
sudo ip link set eth0 down
|
sudo ip link set eth0 down
|
||||||
sudo ip link set wlan1 up
|
sudo ip link set wlan0 up
|
||||||
echo "up" > "$STATE_FILE" # Update the state to "up"
|
echo "up" > "$STATE_FILE" # Update the state to "up"
|
||||||
else
|
else
|
||||||
echo "Bringing interfaces up and down..."
|
echo "Bringing interfaces up and down..."
|
||||||
sudo ip link set wlan1 down
|
sudo ip link set wlan0 down
|
||||||
sudo ip link set eth0 up
|
sudo ip link set eth0 up
|
||||||
sudo ip link set macvlan1 up
|
sudo ip link set macvlan1 up
|
||||||
sudo ip link set macvlan0 up
|
sudo ip link set macvlan0 up
|
||||||
|
Loading…
x
Reference in New Issue
Block a user