nixpkgs-suyu/pkgs/os-specific/linux/hotplug/builder.sh
Armijn Hemel f46b1352fd use correct sed commands
svn path=/nixpkgs/trunk/; revision=4494
2006-01-05 17:41:15 +00:00

21 lines
646 B
Bash

source $stdenv/setup
preBuild=preBuild
preBuild() {
sed -e "s^@bash\@^$bash^g" \
< etc/hotplug/dasd.agent > etc/hotplug/dasd.agent.tmp
mv etc/hotplug/dasd.agent.tmp etc/hotplug/dasd.agent
sed -e "s^@bash\@^$bash^g" \
< etc/hotplug/tape.agent > etc/hotplug/tape.agent.tmp
mv etc/hotplug/tape.agent.tmp etc/hotplug/tape.agent
sed -e "s^@bash\@^$bash^g" \
-e "s^@gnused\@^$gnused^g" \
-e "s^@coreutils\@^$coreutils^g" \
< etc/hotplug.d/default/default.hotplug > etc/hotplug.d/default/default.hotplug.tmp
mv etc/hotplug.d/default/default.hotplug.tmp etc/hotplug.d/default/default.hotplug
}
genericBuild