mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Update stop/start systemd-networkd
This commit is contained in:
parent
d799fc1de0
commit
07b2e6d07a
@ -58,14 +58,24 @@ if [ -r "$CONFIGFILE" ]; then
|
|||||||
|
|
||||||
if [ "${config[BridgedEnable]}" = 1 ]; then
|
if [ "${config[BridgedEnable]}" = 1 ]; then
|
||||||
if [ "${interface}" = "br0" ]; then
|
if [ "${interface}" = "br0" ]; then
|
||||||
|
echo "Stopping systemd-networkd"
|
||||||
|
systemctl stop systemd-networkd
|
||||||
|
|
||||||
echo "Restarting eth0 interface..."
|
echo "Restarting eth0 interface..."
|
||||||
ip link set down eth0
|
ip link set down eth0
|
||||||
ip link set up eth0
|
ip link set up eth0
|
||||||
|
|
||||||
echo "Removing uap0 interface..."
|
echo "Removing uap0 interface..."
|
||||||
iw dev uap0 del
|
iw dev uap0 del
|
||||||
|
|
||||||
|
echo "Restarting systemd-networkd"
|
||||||
|
systemctl start systemd-networkd
|
||||||
|
systemctl enable systemd-networkd
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo "Disabling systemd-networkd"
|
||||||
|
systemctl disable systemd-networkd
|
||||||
|
|
||||||
echo "Removing br0 interface..."
|
echo "Removing br0 interface..."
|
||||||
ip link set down br0
|
ip link set down br0
|
||||||
ip link del dev br0
|
ip link del dev br0
|
||||||
|
Loading…
Reference in New Issue
Block a user