aboutsummaryrefslogtreecommitdiffstats
path: root/mountvirtfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mountvirtfs.sh')
-rw-r--r--mountvirtfs.sh64
1 files changed, 32 insertions, 32 deletions
diff --git a/mountvirtfs.sh b/mountvirtfs.sh
index 237990d..dfaf54f 100644
--- a/mountvirtfs.sh
+++ b/mountvirtfs.sh
@@ -1,32 +1,32 @@
-#!/bin/bash
-
-printf "%b" "${GRN}Mounting virtual kernel filesystems${RST}...\n"
-if ! mountpoint "${LFS}"/dev >/dev/null 2>&1; then
- sudo mount --bind /dev "${LFS}"/dev
-else
- printf "%b" " ${IYLW}${LFS}/dev${IGRN} is already mounted${RST}\n"
-fi
-if ! mountpoint "${LFS}"/dev/pts >/dev/null 2>&1; then
- sudo mount --bind /dev/pts "${LFS}"/dev/pts
-else
- printf "%b" " ${IYLW}${LFS}/dev/pts${IGRN} is already mounted${RST}\n"
-fi
-if ! mountpoint "${LFS}"/proc >/dev/null 2>&1; then
- sudo mount -t proc proc "${LFS}"/proc
-else
- printf "%b" " ${IYLW}${LFS}/proc${IGRN} is already mounted${RST}\n"
-fi
-if ! mountpoint "${LFS}"/sys >/dev/null 2>&1; then
- sudo mount -t sysfs sysfs "${LFS}"/sys
-else
- printf "%b" " ${IYLW}${LFS}/sys${IGRN} is already mounted${RST}\n"
-fi
-if ! mountpoint "${LFS}"/run >/dev/null 2>&1; then
- sudo mount -t tmpfs tmpfs "${LFS}"/run
-else
- printf "%b" " ${IYLW}${LFS}/run${IGRN} is already mounted${RST}\n"
-fi
-
-if [[ -h "${LFS}"/dev/shm ]]; then
- sudo mkdir -pv "${LFS}"/"$(readlink "${LFS}"/dev/shm)"
-fi
+#!/bin/bash
+
+printf "%b" "${GRN}Mounting virtual kernel filesystems${RST}...\n"
+if ! mountpoint "${LFS}"/dev >/dev/null 2>&1; then
+ sudo mount --bind /dev "${LFS}"/dev
+else
+ printf "%b" " ${IYLW}${LFS}/dev${IGRN} is already mounted${RST}\n"
+fi
+if ! mountpoint "${LFS}"/dev/pts >/dev/null 2>&1; then
+ sudo mount --bind /dev/pts "${LFS}"/dev/pts
+else
+ printf "%b" " ${IYLW}${LFS}/dev/pts${IGRN} is already mounted${RST}\n"
+fi
+if ! mountpoint "${LFS}"/proc >/dev/null 2>&1; then
+ sudo mount -t proc proc "${LFS}"/proc
+else
+ printf "%b" " ${IYLW}${LFS}/proc${IGRN} is already mounted${RST}\n"
+fi
+if ! mountpoint "${LFS}"/sys >/dev/null 2>&1; then
+ sudo mount -t sysfs sysfs "${LFS}"/sys
+else
+ printf "%b" " ${IYLW}${LFS}/sys${IGRN} is already mounted${RST}\n"
+fi
+if ! mountpoint "${LFS}"/run >/dev/null 2>&1; then
+ sudo mount -t tmpfs tmpfs "${LFS}"/run
+else
+ printf "%b" " ${IYLW}${LFS}/run${IGRN} is already mounted${RST}\n"
+fi
+
+if [[ -h "${LFS}"/dev/shm ]]; then
+ sudo mkdir -pv "${LFS}"/"$(readlink "${LFS}"/dev/shm)"
+fi