我想讓 raspberry pi
開機後自動執行Network UPS Tools
這兩種方法我都弄了沒反應
/etc/xdg/lxsession/LXDE/autostart
[內容]==================
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@sh /home/pi/run.sh
/etc/rc.local
[內容]==================
#autostart
/home/pi/run.sh
run.sh (權限777)
[內容]==================
sudo systemctl start nut-server
sudo systemctl status nut-server
不知道是哪裡弄錯了
還是有別種方法可以達成?
另外我開小黑窗直接執行run.sh是有成功的