瀏覽代碼

test reset rc.local

master
heuzef 5 年之前
父節點
當前提交
1731688aaf
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      scripts/rclocalreset.sh

+ 8
- 0
scripts/rclocalreset.sh 查看文件

@@ -0,0 +1,8 @@
cp -a /etc/rc.local /etc/rc.local.bak
echo "#!/bin/sh -e" > /etc/rc.local
echo "#" >> /etc/rc.local
echo "# rc.local" >> /etc/rc.local
echo "" >> /etc/rc.local
echo "/bin/bash /var/www/html/scripts/boot.sh &" >> /etc/rc.local
echo "" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local

Loading…
取消
儲存