=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== acpi-support-0.143/debian/addons/lib/power-funcs-68- if [ x"$user" != x ]; then acpi-support-0.143/debian/addons/lib/power-funcs:69: for pid in `ps -U "$user" -o pid=`; do acpi-support-0.143/debian/addons/lib/power-funcs-70- if grep -z -q XAUTHORITY /proc/$pid/environ; then ############################################## acpi-support-0.143/debian/addons/lib/power-funcs-103- console=`fgconsole`; acpi-support-0.143/debian/addons/lib/power-funcs:104: displaynum=`ps t tty$console | sed -n -re 's,.*/Xorg .*:([0-9]+).*,\1,p'` acpi-support-0.143/debian/addons/lib/power-funcs-105- fi ############################################## acpi-support-0.143/debian/addons/scripts/asus-keys-down.sh-4-test -f $KEYS_DIR || exit 0 acpi-support-0.143/debian/addons/scripts/asus-keys-down.sh:5:CURRENT=`cat $KEYS_DIR` acpi-support-0.143/debian/addons/scripts/asus-keys-down.sh-6-NEXT=$((CURRENT<=0 ? 0 : CURRENT-1)) ############################################## acpi-support-0.143/debian/addons/scripts/asus-keys-up.sh-4-test -f $KEYS_DIR || exit 0 acpi-support-0.143/debian/addons/scripts/asus-keys-up.sh:5:CURRENT=`cat $KEYS_DIR` acpi-support-0.143/debian/addons/scripts/asus-keys-up.sh-6-NEXT=$((CURRENT>=3 ? 3 : CURRENT+1)) ############################################## acpi-support-0.143/debian/examples/acpi/resume.d/11-video-pci-restore.sh-5- for x in /sys/bus/pci/devices/*; do acpi-support-0.143/debian/examples/acpi/resume.d/11-video-pci-restore.sh:6: if [ -f /var/run/vga-pci-`basename $x` ]; then acpi-support-0.143/debian/examples/acpi/resume.d/11-video-pci-restore.sh:7: cat /var/run/vga-pci-`basename $x` >$x/config; acpi-support-0.143/debian/examples/acpi/resume.d/11-video-pci-restore.sh-8- fi ############################################## acpi-support-0.143/debian/examples/acpi/resume.d/72-acpi-pain.sh-20-for x in /proc/acpi/fan/*; do acpi-support-0.143/debian/examples/acpi/resume.d/72-acpi-pain.sh:21: if [ -f "$x/state" ] && [ "`grep on $x/state`" ]; then acpi-support-0.143/debian/examples/acpi/resume.d/72-acpi-pain.sh-22- echo -n 3 > $x/state; ############################################## acpi-support-0.143/debian/examples/acpi/suspend.d/50-tosh-save-brightness.sh-5-if [ -e $TOSH_LCD ]; then acpi-support-0.143/debian/examples/acpi/suspend.d/50-tosh-save-brightness.sh:6: TOSH_BRIGHTNESS=$(( `grep brightness: $TOSH_LCD | cut -d: -f2` + 0 )) acpi-support-0.143/debian/examples/acpi/suspend.d/50-tosh-save-brightness.sh:7: TOSH_MAXBRIGHT=$(( `grep brightness_levels: $TOSH_LCD | cut -d: -f2` - 1)) acpi-support-0.143/debian/examples/acpi/suspend.d/50-tosh-save-brightness.sh-8- # Turn brightness to max to make bios password prompt easier to see ############################################## acpi-support-0.143/debian/examples/acpi/suspend.d/55-down-interfaces.sh-44-# Find the remaining running network interfaces... acpi-support-0.143/debian/examples/acpi/suspend.d/55-down-interfaces.sh:45:INTERFACES=`/sbin/ifconfig | awk '/^[^ ]+/ {print $1}'` acpi-support-0.143/debian/examples/acpi/suspend.d/55-down-interfaces.sh-46- ############################################## acpi-support-0.143/debian/examples/acpi/suspend.d/60-generate-modules-list.sh-3-for x in /sys/module/*_ircc /sys/module/*_ircc2; do acpi-support-0.143/debian/examples/acpi/suspend.d/60-generate-modules-list.sh:4: x=`basename $x` acpi-support-0.143/debian/examples/acpi/suspend.d/60-generate-modules-list.sh-5- # nsc_ircc is safe over suspend/resume ############################################## acpi-support-0.143/debian/examples/acpi/suspend.d/70-modules-unload.sh-4-for x in $MODULES_WHITELIST; do acpi-support-0.143/debian/examples/acpi/suspend.d/70-modules-unload.sh:5: MODULES=`echo $MODULES | sed s/$x//g`; acpi-support-0.143/debian/examples/acpi/suspend.d/70-modules-unload.sh-6-done ############################################## acpi-support-0.143/debian/examples/acpi/suspend.d/81-video-pci-state.sh-5- for x in /sys/bus/pci/devices/*; do acpi-support-0.143/debian/examples/acpi/suspend.d/81-video-pci-state.sh:6: if [ `cat $x/class` = "0x030000" ]; then acpi-support-0.143/debian/examples/acpi/suspend.d/81-video-pci-state.sh:7: cat $x/config >/var/run/vga-pci-`basename $x`; acpi-support-0.143/debian/examples/acpi/suspend.d/81-video-pci-state.sh-8- fi ############################################## acpi-support-0.143/debian/patches/state-funcs.diff-22-- # if any of the wireless devices are turned on then return success acpi-support-0.143/debian/patches/state-funcs.diff:23:- if [ -r $DEVICE/device/power/state ] && [ "`cat $DEVICE/device/power/state`" -eq 0 ] acpi-support-0.143/debian/patches/state-funcs.diff-24-- then ############################################## acpi-support-0.143/debian/patches/state-funcs.diff-26-- fi acpi-support-0.143/debian/patches/state-funcs.diff:27:- if [ -r $DEVICE/device/rf_kill ] && [ "`cat $DEVICE/device/rf_kill`" -eq 0 ] acpi-support-0.143/debian/patches/state-funcs.diff-28-- then ############################################## acpi-support-0.143/debian/patches/state-funcs.diff-101-- # We have a way of controlling the device, lets try acpi-support-0.143/debian/patches/state-funcs.diff:102:- if [ "`cat $CONTROL`" = 0 ] ; then acpi-support-0.143/debian/patches/state-funcs.diff-103-- # It's powered on. Switch it off. ############################################## acpi-support-0.143/debian/patches/state-funcs.diff-178--{ acpi-support-0.143/debian/patches/state-funcs.diff:179:- action=`test "$1" -ne 0 && echo blink || echo off` acpi-support-0.143/debian/patches/state-funcs.diff-180-- test -w /proc/acpi/ibm/led && echo -n 7 "$action" > /proc/acpi/ibm/led ############################################## acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-17- # if any of the wireless devices are turned on then return success acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs:18: if [ -r $DEVICE/device/power/state ] && [ "`cat $DEVICE/device/power/state`" -eq 0 ] acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-19- then ############################################## acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-21- fi acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs:22: if [ -r $DEVICE/device/rf_kill ] && [ "`cat $DEVICE/device/rf_kill`" -eq 0 ] acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-23- then ############################################## acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-71- # We have a way of controlling the device, lets try acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs:72: if [ "`cat $CONTROL`" = 0 ] ; then acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-73- # It's powered on. Switch it off. ############################################## acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-93-{ acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs:94: action=`test "$1" -ne 0 && echo blink || echo off` acpi-support-0.143/.pc/state-funcs.diff/lib/state-funcs-95- test -w /proc/acpi/ibm/led && echo -n 7 "$action" > /proc/acpi/ibm/led