View Single Post
  #6   (View Single Post)  
Old 4th December 2022
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

My /etc/doas.conf needed full cmd paths in the script.

Code:
#!/bin/sh
# Determine Touchpad state
tp_state=$(doas /sbin/wsconsctl 2>/dev/null | awk -F'=' '/mouse.tp.disable/{print $2}')
# Flip Touchpad state
if [ "$tp_state" -eq 0 ] ; then
   doas /sbin/wsconsctl mouse.tp.disable=1 1>/dev/null
else
   doas /sbin/wsconsctl mouse.tp.disable=0 1>/dev/null
fi

Last edited by shep; 4th December 2022 at 10:48 PM. Reason: See next post :Thnx @Head_on_a_Stick
Reply With Quote