From ab8a116483359c47785ea545c21eaeaa58e72564 Mon Sep 17 00:00:00 2001 From: "Christos.K" Date: Tue, 22 Aug 2017 13:45:35 +0300 Subject: Test script --- config.d/controller/modules/init_script.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 config.d/controller/modules/init_script.sh 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 + + -- cgit v1.2.3-65-gdbad