diff options
| author | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-04-14 22:32:43 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-04-14 22:32:43 +0200 |
| commit | 83f7fe4b8402bab171d110703a1b1115efbc9b28 (patch) | |
| tree | 19110702c7d740f6bd8ee4f5d2ebcb97442be237 /straper/db/public/network/etc-network/if-post-down.d | |
| parent | 51d43498b07dc97d795947964534f0903cd05db5 (diff) | |
| download | bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.tar.gz bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.zip | |
cleaned up many scrits and deleted some that were of no use; renamed a lot
Diffstat (limited to 'straper/db/public/network/etc-network/if-post-down.d')
| -rwxr-xr-x | straper/db/public/network/etc-network/if-post-down.d/wireless-tools | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/straper/db/public/network/etc-network/if-post-down.d/wireless-tools b/straper/db/public/network/etc-network/if-post-down.d/wireless-tools deleted file mode 100755 index 7ddf29f..0000000 --- a/straper/db/public/network/etc-network/if-post-down.d/wireless-tools +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -IWCONFIG=/usr/sbin/iwconfig - -if [ ! -x $IWCONFIG ]; then - exit 0 -fi - -# check if this is a 802.11 device we're supposed to be effecting -case "${IF_WIRELESS:-enable}" in - wireless-tools|iwconfig) - # *we* and not some other 802.11 tool should be used - ;; - true|yes|enable|1) - # 802.11 should be used on this device, check for extensions - $IWCONFIG $IFACE >/dev/null 2>&1 || exit 0 - ;; - *) - exit 0 - ;; -esac - -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 |
