Just an update for EasyOS users...
I'm using Macbook Air 2017, and keyboard light doesn't work.
Bash seems to be configured with "noclobber" set. So when trying to write to
Code: Select all
/sys/class/leds/smc::kbd_backlight/brightness
it gives the error "cannot overwrite existing file".
My working script is as follows.
Code: Select all
#!/bin/bash
set +o noclobber
modprobe applesmc
echo 10 > /sys/class/leds/smc::kbd_backlight/brightness
set -o noclobber
Place this in
Code: Select all
/root/Startup
with the filename
Code: Select all
keyboard_backlight
and then run
Code: Select all
chmod +x /root/Startup/keyboard_backlight