1 Star 0 Fork 1

az/sugar-wifi-conf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wificonfig.sh 646 Bytes
一键复制 编辑 原始数据 按行查看 历史
铲屎将军 提交于 2019-06-24 14:48 . 更改启动脚本路径
#/bin/bash
echo -e "Set execution permissions..."
cd sugar-wifi-conf/build
sudo chmod 777 binding.node
sudo chmod 777 sugar-wifi-conf
echo -e "Add to startup..."
sudo sed -i '/sugar-wifi-conf/d' /etc/rc.local
sudo sed -i 's/"exit 0"/"Cross the wall, we can reach every corner of the world"/' /etc/rc.local
sudo sed -i '/exit 0/i sudo /home/pi/sugar-wifi-conf/build/sugar-wifi-conf pisugar /home/pi/sugar-wifi-conf/build/custom_config.json&' /etc/rc.local
sudo sed -i 's/"Cross the wall, we can reach every corner of the world"/"exit 0"/' /etc/rc.local
echo -e "Well done Pi Star people!"
echo -e "Please restart your raspberry pi and enjoy it!!"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/way712/sugar-wifi-conf.git
[email protected]:way712/sugar-wifi-conf.git
way712
sugar-wifi-conf
sugar-wifi-conf
master

搜索帮助