cbattery/.visudo

10 lines
403 B
Plaintext

Cmnd_Alias BATTERYOFF = smc -k CH0B -w 02, smc -k CH0C -w 02, smc -k CH0B -r, smc -k CH0C -r
Cmnd_Alias BATTERYON = smc -k CH0B -w 00, smc -k CH0C -w 00
Cmnd_Alias DISCHARGEOFF = smc -k CH0I -w 00, smc -k CH0I -r
Cmnd_Alias DISCHARGEON = smc -k CH0I -w 01
ALL ALL = NOPASSWD: BATTERYOFF
ALL ALL = NOPASSWD: BATTERYON
ALL ALL = NOPASSWD: DISCHARGEOFF
ALL ALL = NOPASSWD: DISCHARGEON