/etc/acpi/asus-wireless.sh is in acpi-support 0.142-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh
# Find and toggle wireless devices on Asus laptops
test -f /usr/share/acpi-support/state-funcs || exit 0
. /usr/share/acpi-support/state-funcs
read vendor </sys/class/dmi/id/sys_vendor 2>/dev/null || exit 0
case $vendor in
[Aa][Ss][Uu][Ss]*)
;;
*)
exit 0
;;
esac
if [ "$1" = "" ] ; then
toggleAllWirelessStates;
elif isAnyWirelessPoweredOn; then
if [ "$1" = "off" ] ; then
toggleAllWirelessStates;
fi
else
if [ "$1" = "on" ] ; then
toggleAllWirelessStates;
fi
fi
|