diff --git a/Documentation/Developers/CHANGELOG-RENE b/Documentation/Developers/CHANGELOG-RENE index a2ab94a5f..a959f7e6c 100644 --- a/Documentation/Developers/CHANGELOG-RENE +++ b/Documentation/Developers/CHANGELOG-RENE @@ -11,6 +11,7 @@ - updated gnome-themes (the real cause for the segfauls is the crux theme) - added slightly cleaned and devfs-aware configuration files to mol (Mac-On- Linux) + - added devfs converting logic for the config file of the pbbuttons package *) 2003-10-31 (2.0.0-rc2 - 2.0.0-rc3) diff --git a/package/powerpc/pbbuttons/pbbuttons.conf b/package/powerpc/pbbuttons/pbbuttons.conf index 69927099e..8dec4509b 100644 --- a/package/powerpc/pbbuttons/pbbuttons.conf +++ b/package/powerpc/pbbuttons/pbbuttons.conf @@ -20,5 +20,18 @@ # # --- ROCK-COPYRIGHT-NOTE-END --- -postmake="install_init pbbuttonsd $confdir/pbbuttonsd.init" +pbbuttons_pm(){ + install_init pbbuttonsd $confdir/pbbuttonsd.init + + echo "Modifing $confdir/pbbuttonsd.conf to be DevFS-aware ..." + cat $sysconfdir/pbbuttonsd.conf > $sysconfdir/pbbuttonsd.conf.tmp + sed -e s,/dev/hda\([0-9]\),/dev/discs/disc0/part\1, \ + -e s,/dev/hda,/dev/discs/disc0/disc, \ + -e s,/dev/mixer,/dev/sound/mixer, \ + -e s,/dev/pmu,/dev/misc/pmu, \ + $sysconfdir/pbbuttonsd.conf.tmp > $sysconfdir/pbbuttonsd.conf + rm $sysconfdir/pbbuttonsd.conf.tmp +} + +postmake="pbbuttons_pm"