← Commit list

81a708393

Denys Vlasenko
Denys Vlasenko
2019-09-05
SUCCESS Duration: 155s

Subject

examples/udhcp/simple.script: up interface on deconfig event

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

examples/udhcp/simple.script+2 -1
@@ -16,9 +16,10 @@ BROADCAST="broadcast +"
case "$1" in
deconfig)
- echo "Setting IP address 0.0.0.0 on $interface"
+ echo "Clearing IP addresses on $interface, upping it"
if command -v ip >/dev/null; then
ip addr flush dev $interface
+ ip link set dev $interface up
else
ifconfig $interface 0.0.0.0
fi