here is my full code , I just use following code:
case "$1" in
st)
echo 450 > /sys/class/backlight/intel_backlight
;;
stop)
echo
;;
rst)
echo; echo 450 > /sys/class/backlight/intel_backlight
;;
*)
echo "Usage: $0 {st|stop|rst}"
exit 1
;;
esac
why it raise this error
原因是我的init.d文件没有“ x”权限,因此在运行它之前,我首先需要chmod 755 /etc/init.d/brightness
You may want to consider base your init script on the skeleton
which live in /etc/init.d
. Your script is probably inpcomplete.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.