From ce3d7220e258efb1036e6656e534d82fb2678104 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Wed, 22 Apr 2009 17:16:54 +0200 Subject: [PATCH] Remove udev devfs configs. --- src/functions.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/functions.sh b/src/functions.sh index 1ac813b..c223076 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -1088,6 +1088,26 @@ upgrade_munin () { dpkg-reconfigure munin-cn } +# udev.preinst fails if devfs configs still exist +upgrade_udev () { + local config + + for config in /etc/udev/rules.d/devfs.rules \ + /etc/udev/rules.d/compat-full.rules \ + /etc/udev/rules.d/compat.rules + do + if [ -e $config ]; then + mv -v $config /etc/udev/ + fi + done + + if [ -f /etc/udev/udev.rules -a ! -f /etc/udev/rules.d/udev.rules ]; then + ln -sfv ../udev.rules /etc/udev/rules.d/ + fi + + pkgadd udev +} + # fix /etc/dpkg/dpkg.cfg comment_force_overwrite () { if [ -f /etc/dpkg/dpkg.cfg ]; then -- 1.7.10.4