summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rw-r--r--init.d/udev7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.d/udev b/init.d/udev
index 9eb74bd..365f78a 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -67,9 +67,14 @@ check_kernel()
return 0
}
+_RC_GET_RUNDIR_CACHE=
get_rundir()
{
- echo $(udevadm info --run)
+ if [ -z "$_RC_GET_RUNDIR_CACHE" ]; then
+ _RC_GET_RUNDIR_CACHE="$(udevadm info --run)"
+ fi
+ echo "$_RC_GET_RUNDIR_CACHE"
+ return 0
}
cleanup()