From b730585a6953d2a293393772e2e0f9487ead154c Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Sat, 1 Nov 2003 21:30:44 +0000 Subject: [PATCH] added devfs converting logic for the config file of the pbbuttons package git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1671 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- Documentation/Developers/CHANGELOG-RENE | 1 + package/powerpc/pbbuttons/pbbuttons.conf | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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"