From: Valentin Vidic Date: Wed, 22 Apr 2009 15:16:54 +0000 (+0200) Subject: Remove udev devfs configs. X-Git-Tag: debian/5.0.0~49 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=ce3d7220e258efb1036e6656e534d82fb2678104;p=carnet-upgrade.git Remove udev devfs configs. --- 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