I would like some help changing a script I have for my asus, to switch the display between LCD/VGA.
Basically, what I have in the file is:
Code:
echo `echo $1 | sed 's/.*0*6\(.\).*/\1/'` >/proc/acpi/asus/disp
I need some help "translating" this code. What it basically does is changing the value in the .../disp file. What I've failed to understand is how does it determine the $1 value.
Can anyone help me?
What I need is to change the script to:
if (value in file == 1), change to 3
if (value in file == 3), change to 1 and change to 1 again (there's a bug in the acpi4asus and it only works if the value is changed to 1 two times...go figure.
How can I do this?