Browse Source

#IQRV #comment [Scripts] 添加启动脚本

gifur 4 years ago
parent
commit
10a879aa43
1 changed files with 11 additions and 0 deletions
  1. 11 0
      addin/startup_scripts/sudo_spexplorer.sh

+ 11 - 0
addin/startup_scripts/sudo_spexplorer.sh

@@ -0,0 +1,11 @@
+#!/bin/sh
+
+MY_PATH="`dirname \"$0\"`"              # relative
+MY_PATH="`( cd \"$MY_PATH\" && pwd )`"  # absolutized and normalized
+echo "2"$MY_PATH
+bootscripts=""
+bootscripts=$MY_PATH"/spexplorer.sh"
+echo $bootscripts
+chmod 766 $bootscripts
+sudo $bootscripts
+