diff options
author | elkropac@students.zcu.cz <elkropac@students.zcu.cz> | 2004-01-12 23:29:57 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:15 -0700 |
commit | 655f414dde99fefacdd43948f3ca95ab05373e83 (patch) | |
tree | 3d7b4795c43bb538620eea8d72c61ae498a0f208 /etc/init.d/udev.debian | |
parent | 86673eb3edb0f23bb83f2d04ed76f0302ea39fa5 (diff) |
[PATCH] fix udev directory for Debian init script
there is also patch on debian init.d file, it uses variable $udev_dir
also when creating and removing symlinks
Diffstat (limited to 'etc/init.d/udev.debian')
-rw-r--r-- | etc/init.d/udev.debian | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/etc/init.d/udev.debian b/etc/init.d/udev.debian index cf7b0070ad..d67941cc13 100644 --- a/etc/init.d/udev.debian +++ b/etc/init.d/udev.debian @@ -72,24 +72,24 @@ case "$1" in run_udev # hack to create stdin node - cd /udev && ln -s /proc/self/fd fd - cd /udev && ln -s fd/0 stdin - cd /udev && ln -s fd/1 stdout - cd /udev && ln -s fd/2 stderr - cd /udev && ln -s /proc/kcore core - cd /udev && ln -s /proc/asound/oss/sndstat sndstat + cd $udev_dir && ln -s /proc/self/fd fd + cd $udev_dir && ln -s fd/0 stdin + cd $udev_dir && ln -s fd/1 stdout + cd $udev_dir && ln -s fd/2 stderr + cd $udev_dir && ln -s /proc/kcore core + cd $udev_dir && ln -s /proc/asound/oss/sndstat sndstat ;; stop) # be careful action "Removing udev device nodes: " /bin/true export ACTION=remove run_udev - rm -f /udev/sndstat - rm -f /udev/core - rm -f /udev/stderr - rm -f /udev/stdout - rm -f /udev/stdin - rm -f /udev/fd + rm -f $udev_dir/sndstat + rm -f $udev_dir/core + rm -f $udev_dir/stderr + rm -f $udev_dir/stdout + rm -f $udev_dir/stdin + rm -f $udev_dir/fd ;; status) if [ -d $udev_dir ]; then |