Sfoglia il codice sorgente

更新update_code.sh脚本,配置开机启动oled屏幕

corvin rasp melodic 1 anno fa
parent
commit
9c75f0897e
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      update_code.sh

+ 4 - 1
update_code.sh

@@ -50,7 +50,10 @@ make
 cd ../
 echo -e "\n"
 echo -e "${green}>>> 需要输入密码配置oled屏幕启动服务...${normal}"
-sudo cp *.service /usr/lib/systemd/system/
+sudo cp *.service /lib/systemd/system/
+sudo chmod 644 /lib/systemd/system/oled_startup*.service
+sudo systemctl daemon-reload
+sudo systemctl enable oled_startup_sh.service
 echo -e "\n"
 echo -e "${green}>>> 全部代码都已编译配置完成,下面开始使用小车...${normal}"
 echo -e "\n"