aboutsummaryrefslogtreecommitdiffstats
path: root/umountvirtfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'umountvirtfs.sh')
-rw-r--r--umountvirtfs.sh56
1 files changed, 28 insertions, 28 deletions
diff --git a/umountvirtfs.sh b/umountvirtfs.sh
index 8eb969f..447f6e7 100644
--- a/umountvirtfs.sh
+++ b/umountvirtfs.sh
@@ -1,28 +1,28 @@
-#!/bin/bash
-
-printf "%b" "${GRN}Unmounting virtual kernel filesystems${RST}...\n"
-if mountpoint "${LFS}"/dev/pts >/dev/null 2>&1; then
- sudo umount "${LFS}"/dev/pts
-else
- printf "%b" " ${IYLW}${LFS}/dev/pts${IGRN} is already unmounted${RST}\n"
-fi
-if mountpoint "${LFS}"/dev >/dev/null 2>&1; then
- sudo umount "${LFS}"/dev
-else
- printf "%b" " ${IYLW}${LFS}/dev${IGRN} is already unmounted${RST}\n"
-fi
-if mountpoint "${LFS}"/proc >/dev/null 2>&1; then
- sudo umount "${LFS}"/proc
-else
- printf "%b" " ${IYLW}${LFS}/proc${IGRN} is already unmounted${RST}\n"
-fi
-if mountpoint "${LFS}"/sys >/dev/null 2>&1; then
- sudo umount "${LFS}"/sys
-else
- printf "%b" " ${IYLW}${LFS}/sys${IGRN} is already unmounted${RST}\n"
-fi
-if mountpoint "${LFS}"/run >/dev/null 2>&1; then
- sudo umount "${LFS}"/run
-else
- printf "%b" " ${IYLW}${LFS}/run${IGRN} is already unmounted${RST}\n"
-fi
+#!/bin/bash
+
+printf "%b" "${GRN}Unmounting virtual kernel filesystems${RST}...\n"
+if mountpoint "${LFS}"/dev/pts >/dev/null 2>&1; then
+ sudo umount "${LFS}"/dev/pts
+else
+ printf "%b" " ${IYLW}${LFS}/dev/pts${IGRN} is already unmounted${RST}\n"
+fi
+if mountpoint "${LFS}"/dev >/dev/null 2>&1; then
+ sudo umount "${LFS}"/dev
+else
+ printf "%b" " ${IYLW}${LFS}/dev${IGRN} is already unmounted${RST}\n"
+fi
+if mountpoint "${LFS}"/proc >/dev/null 2>&1; then
+ sudo umount "${LFS}"/proc
+else
+ printf "%b" " ${IYLW}${LFS}/proc${IGRN} is already unmounted${RST}\n"
+fi
+if mountpoint "${LFS}"/sys >/dev/null 2>&1; then
+ sudo umount "${LFS}"/sys
+else
+ printf "%b" " ${IYLW}${LFS}/sys${IGRN} is already unmounted${RST}\n"
+fi
+if mountpoint "${LFS}"/run >/dev/null 2>&1; then
+ sudo umount "${LFS}"/run
+else
+ printf "%b" " ${IYLW}${LFS}/run${IGRN} is already unmounted${RST}\n"
+fi