projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
36c8fe6
)
Remove udev devfs configs.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Wed, 22 Apr 2009 15:16:54 +0000
(17:16 +0200)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Wed, 22 Apr 2009 15:16:54 +0000
(17:16 +0200)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
1ac813b
..
c223076
100644
(file)
--- a/
src/functions.sh
+++ b/
src/functions.sh
@@
-1088,6
+1088,26
@@
upgrade_munin () {
dpkg-reconfigure munin-cn
}
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
# fix /etc/dpkg/dpkg.cfg
comment_force_overwrite () {
if [ -f /etc/dpkg/dpkg.cfg ]; then