aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos.K <freedomrfox@gmail.com>2017-08-22 13:45:35 +0300
committerChristos.K <freedomrfox@gmail.com>2017-08-22 13:45:35 +0300
commitab8a116483359c47785ea545c21eaeaa58e72564 (patch)
tree0a7d8c984e22a0e4cc7562203dff63da441d7be3
parentMinor (diff)
downloadGSE-ab8a116483359c47785ea545c21eaeaa58e72564.tar.gz
GSE-ab8a116483359c47785ea545c21eaeaa58e72564.tar.bz2
GSE-ab8a116483359c47785ea545c21eaeaa58e72564.zip
Test script
-rwxr-xr-xconfig.d/controller/modules/init_script.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/config.d/controller/modules/init_script.sh b/config.d/controller/modules/init_script.sh
new file mode 100755
index 0000000..4311314
--- /dev/null
+++ b/config.d/controller/modules/init_script.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+echo "Creating tmp_dir"
+if mkdir -p tmp_dir; then
+ echo "Created"
+ echo "Mounting /dev/sda5 to tmp_dir"
+
+ if mount -t ext4 -o rw /dev/sda5 tmp_dir; then
+ echo "Mounted"
+ _proceed_var=0
+ else
+ _proceed_var=1
+ fi
+else
+ _proceed_var=1
+fi
+
+