summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/udev/files/shell-compat-118-r3.sh')
-rw-r--r--sys-fs/udev/files/shell-compat-118-r3.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-fs/udev/files/shell-compat-118-r3.sh b/sys-fs/udev/files/shell-compat-118-r3.sh
index d76843568091..479dd9db5679 100644
--- a/sys-fs/udev/files/shell-compat-118-r3.sh
+++ b/sys-fs/udev/files/shell-compat-118-r3.sh
@@ -6,6 +6,7 @@ cmd_exist()
type "$1" >/dev/null 2>&1
}
+# does not exist in baselayout-1, does exist in openrc
if ! cmd_exist yesno; then
yesno() {
[ -z "$1" ] && return 1
@@ -16,6 +17,8 @@ if ! cmd_exist yesno; then
}
fi
+# does exist in baselayout-1
+# does not exist in openrc, but is added by openrc-ebuild since some time
if ! cmd_exist KV_to_int; then
KV_to_int() {
[ -z $1 ] && return 1
@@ -36,6 +39,7 @@ if ! cmd_exist KV_to_int; then
}
fi
+# same as KV_to_int
if ! cmd_exist get_KV; then
_RC_GET_KV_CACHE=""
get_KV() {
@@ -48,7 +52,7 @@ if ! cmd_exist get_KV; then
}
fi
-# only for baselayout-1, does exist in all openrc versions
+# does not exist in baselayout-1, does exist in openrc
if ! cmd_exist fstabinfo; then
fstabinfo() {
[ "$1" = "--quiet" ] && shift
@@ -68,3 +72,4 @@ if ! cmd_exist fstabinfo; then
}
fi
+