diff options
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/net.lo.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 2611e3e..31a45e6 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -536,6 +536,18 @@ interface_down() { _run_if _down "$@" } +set_interface_type() +{ + service_set_value iface_type "$@" +} +get_interface_type() +{ + ( RC_SVCNAME="net.$IFACE" service_get_value iface_type ) +} +is_interface_type() +{ + [ "$(get_interface_type)" = "$1" ] +} start() { |