K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / etc / network / if-post-down.d /
server ip : 104.21.89.46

your ip : 172.69.214.217

H O M E


Filename/etc/network/if-post-down.d/wireless-tools
Size1.04 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:57
Last modified21-Apr-2012 01:41
Last accessed06-Jul-2025 18:34
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

IWCONFIG=/sbin/iwconfig

if [ ! -x $IWCONFIG ]; then
exit 0
fi

apply_settings()
{
if [ -n "$IF_WIRELESS_MODE" ]; then
$IWCONFIG "$IFACE" mode auto
fi

if [ -n "$IF_WIRELESS_AP" ]; then
$IWCONFIG "$IFACE" ap off
fi

if [ -n "$IF_WIRELESS_RATE" ]; then
$IWCONFIG "$IFACE" rate auto
fi

if [ -n "$IF_WIRELESS_RTS" ]; then
$IWCONFIG "$IFACE" rts auto
fi

if [ -n "$IF_WIRELESS_FRAG" ]; then
$IWCONFIG "$IFACE" frag auto
fi

if [ -n "$IF_WIRELESS_POWER" ]; then
$IWCONFIG "$IFACE" power off
fi

if [ -n "$IF_WIRELESS_TXPOWER" ]; then
$IWCONFIG "$IFACE" txpower auto
fi

if [ -n "$IF_WIRELESS_ENC" ]; then
$IWCONFIG "$IFACE" enc off
fi

if [ -n "$IF_WIRELESS_KEY" ]; then
$IWCONFIG "$IFACE" key off
fi

if [ -n "$IF_WIRELESS_DEFAULTKEY" ]; then
$IWCONFIG "$IFACE" key off
fi

if [ -n "$IF_WIRELESS_NWID" ]; then
$IWCONFIG "$IFACE" nwid off
fi

if [ -n "$IF_WIRELESS_ESSID" ]; then
$IWCONFIG "$IFACE" essid any
fi

if [ -n "$IF_WIRELESS_COMMIT" ]; then
$IWCONFIG "$IFACE" commit
fi
}

apply_settings 2>/dev/null