1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Contributed by: João Valverde <joao.valverde@ist.utl.pt> . "$SUBR_DIR/ip" declare -ag BindsToInterfaces dummy_up() { if is_interface "$Interface"; then report_error "Interface '$Interface' already exists" return 1 fi interface_add dummy "$Interface" bring_interface_up "$Interface" ip_set } dummy_down() { ip_unset interface_delete "$Interface" } # vim: ft=sh ts=4 et sw=4: