From 237b3aa53bd2d67890a142ca7365e82a8c067216 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 22 May 2020 02:13:09 +0300 Subject: init: move mnt function rc.lib --- rc.boot | 9 --------- rc.lib | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/rc.boot b/rc.boot index 507a3d9..0edc3d9 100755 --- a/rc.boot +++ b/rc.boot @@ -6,15 +6,6 @@ . /usr/lib/init/rc.lib [ -f /etc/init/rc.conf ] && . /etc/init/rc.conf -mnt() { - [ -f /proc/mounts ] && while read -r _ mnt _; do - case "$mnt" in "$1") return 0; esac - done < /proc/mounts - - mnt="$1"; shift - mount "$@" "$mnt" 2>&1 | log -} - # Display a pretty welcome message printf '\033[1;36m-> \033[39mWelcome to \033[35mCarbs %s\033[39m!\033[m\n' "$(uname -s)" diff --git a/rc.lib b/rc.lib index 6eed51b..898bb1c 100644 --- a/rc.lib +++ b/rc.lib @@ -75,3 +75,12 @@ parse_cmdline() { esac done } + +mnt() { + [ -f /proc/mounts ] && while read -r _ mnt _; do + case "$mnt" in "$1") return 0; esac + done < /proc/mounts + + mnt="$1"; shift + mount "$@" "$mnt" 2>&1 | log +} -- cgit v1.2.3