Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/ifupdown/examples/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/sh if [ `id -u` -ne 0 ] || [ "$1" = "" ]; then exit 1; fi if [ -x /usr/bin/fping ]; then PING="/usr/bin/fping" else PING="/bin/ping -c 2" fi iface="$1" which="" while read addr pingme scheme; do if [ "$which" ]; then continue; fi #echo " Trying $addr & $pingme ($scheme)" >&2 ip addr add $addr dev $iface >/dev/null 2>&1 ip link set $iface up >/dev/null 2>&1 if $PING $pingme >/dev/null 2>&1; then which="$scheme" fi ip link set $iface down >/dev/null 2>&1 ip addr del $addr dev $iface >/dev/null 2>&1 done if [ "$which" ]; then echo $which; exit 0; fi exit 1 |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0168 ]-- |