mirror of https://github.com/Horhik/dotfiles.git
15 lines
190 B
Plaintext
15 lines
190 B
Plaintext
|
#!/bin/dash
|
||
|
path=/tmp/redshift-toggl
|
||
|
file=$(cat $path)
|
||
|
text="off"
|
||
|
|
||
|
if [ "$file" = "$text" ]
|
||
|
then
|
||
|
connmanctl enable wifi
|
||
|
echo "on" > $path
|
||
|
else
|
||
|
connmanctl disable wifi
|
||
|
echo "off" > $path
|
||
|
fi
|
||
|
|