aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+
+