Init script to disable Asus light sensor

#!/bin/bash
 
cat <<EOF> /etc/init.d/lightsensor
#!/bin/sh
echo 0 > /sys/devices/platform/asus-laptop/ls_switch
exit 0
EOF
 
chmod 755 /etc/init.d/lightsensor
 
sudo update-rc.d lightsensor defaults 90