mirror of
https://github.com/tonusoo/koduinternet-cpe
synced 2025-12-17 15:45:11 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Title : restore-static-ipv4-addrs
|
||||
# Last modified date : 11.02.2023
|
||||
# Author : Martin Tonusoo
|
||||
# Description : Restores the permanent IPv4 addresses stored in a
|
||||
# variable, which was populated by get-static-ipv4-addrs
|
||||
# dhclient enter hook.
|
||||
# Options :
|
||||
# Notes : Script is meant to be run as a dhclient exit hook.
|
||||
# Script is POSIX sh compliant.
|
||||
|
||||
for perm_addr in $perm_addrs; do
|
||||
ip -4 addr add "$perm_addr" dev "$interface" >/dev/null 2>&1 || true
|
||||
done
|
||||
Reference in New Issue
Block a user