Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /snap/core20/2585/etc/wpa_supplicant/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/sh # Action script to enable/disable wpa-roam interfaces in reaction to # ifplugd events. # # Copyright: Copyright (c) 2008-2010, Kel Modderman <[email protected]> # License: GPL-2 # PATH=/sbin:/usr/sbin:/bin:/usr/bin if [ ! -x /sbin/wpa_action ]; then exit 0 fi # ifplugd(8) - <iface> <action> # # If an ifplugd managed interface is brought up, disconnect any # wpa-roam managed interfaces so that only one "roaming" interface # remains active on the system. IFPLUGD_IFACE="${1}" case "${2}" in up) COMMAND=disconnect ;; down) COMMAND=reconnect ;; *) echo "$0: unknown arguments: ${@}" >&2 exit 1 ;; esac for CTRL in /run/wpa_supplicant/*; do [ -S "${CTRL}" ] || continue IFACE="${CTRL#/run/wpa_supplicant/}" # skip if ifplugd is managing this interface if [ "${IFPLUGD_IFACE}" = "${IFACE}" ]; then continue fi if wpa_action "${IFACE}" check; then wpa_cli -i "${IFACE}" "${COMMAND}" fi done |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0029 ]-- |