diff options
Diffstat (limited to 'bin/extra/usbtoggle')
-rwxr-xr-x | bin/extra/usbtoggle | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/extra/usbtoggle b/bin/extra/usbtoggle index 7adb2a2..d459ffd 100755 --- a/bin/extra/usbtoggle +++ b/bin/extra/usbtoggle @@ -4,7 +4,7 @@ # dependencies # - lsusb (to list usb devices) -# - commander (menu command) +# - fzf (menu command) # - doas (to run as root) device="$(lsusb | fzf)" @@ -21,5 +21,5 @@ file="$(grep -l "$p" $(grep -l "$v" /sys/bus/usb/devices/*/idVendor | sed 's/idVendor/idProduct/') | sed 's/idProduct$/authorized/')" -echo 0 | doas tee "$file" -echo 1 | doas tee "$file" +printf '%s\n' 0 | doas tee "$file" +printf '%s\n' 1 | doas tee "$file" |