root 权限的开机启动脚本在哪里写啊?
Tofloor
poster avatar
oldfeel
deepin
2017-08-19 02:59
Author
创建并写入 /etc/rc.local 不起作用,写在 /etc/profile 中提示权限不足
脚本内容
  1. echo disabled > /sys/devices/pci0000\:00/0000\:00\:1d.0/power/wakeup
  2. echo disabled > /sys/devices/pci0000\:00/0000\:00\:1a.0/power/wakeup
Copy the Code


Reply Favorite View the author
All Replies
avatar
duanyao
deepin
2017-08-19 04:26
#1
Reply View the author
avatar
153******45
deepin
2017-08-19 04:49
#2
sudo用了吗
Reply View the author
avatar
oldfeel
deepin
2017-08-19 04:50
#3

sudo 不是要输入密码吗
Reply View the author
avatar
oldfeel
deepin
2017-08-19 04:50
#4
https://bbs.deepin.org/post/144372
写成 systemd 服务 https://zh.opensuse.org/openSUSE:How_to_write_a_systemd_service

好的,谢谢
Reply View the author