Ai
1 Star 0 Fork 0

Guanjun/linux_scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
initd.sh 539 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ubuntu 提交于 2018-12-29 19:09 +08:00 . startup script
#!/bin/bash
ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service
echo "" >> /etc/systemd/system/rc-local.service
echo "[Install]" >> /etc/systemd/system/rc-local.service
echo "WantedBy=multi-user.target" >> /etc/systemd/system/rc-local.service
echo "Alias=rc-local.service" >> /etc/systemd/system/rc-local.service
rm -rf /etc/rc.local; touch /etc/rc.local
chmod 755 /etc/rc.local
echo "#!/bin/bash" >> /etc/rc.local
echo "cd /home/ubuntu/xmr-stak-linux-2.7.1-cpu/" >> /etc/rc.local
echo $1 >> /etc/rc.local
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/mapicccy/linux_scripts.git
git@gitee.com:mapicccy/linux_scripts.git
mapicccy
linux_scripts
linux_scripts
master

搜索帮助