aboutsummaryrefslogtreecommitdiff
path: root/rc.boot
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-16 04:19:42 +0300
committerCem Keylan <cem@ckyln.com>2020-05-16 04:19:42 +0300
commit3421a220201a3c7e96de50cc05be940a7d86ad5b (patch)
tree1648937345dd1cf71f11211aee2a9f4bbd4cefdc /rc.boot
parent0a26140bdcb5e6aa19c56237335f06ea8b1989b4 (diff)
downloadinit-3421a220201a3c7e96de50cc05be940a7d86ad5b.tar.gz
init: move mnt function to rc.boot
Diffstat (limited to 'rc.boot')
-rwxr-xr-xrc.boot7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.boot b/rc.boot
index 66a90d8..fe6c921 100755
--- a/rc.boot
+++ b/rc.boot
@@ -4,7 +4,14 @@
. /etc/init/rc.conf
. INITDIR/rc.lib
+mnt() {
+ while read -r _ mnt _; do
+ case "$mnt" in "$1") return 0; esac
+ done < /proc/mounts
+ mnt="$1"; shift
+ mount "$@" "$mnt"
+}
PATH=/usr/bin:/usr/local/bin