1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/os-specific/linux/hdapsd/postInstall.sh

8 lines
244 B
Bash
Raw Normal View History

2016-02-24 20:43:38 +00:00
mkdir -p $out/lib/udev/rules.d $out/lib/systemd/system
cp misc/hdapsd.rules $out/lib/udev/rules.d
SBIN_REWRITE="s|@sbindir@|$out/bin|g"
for i in misc/*.service.in
do sed $SBIN_REWRITE "$i" > "$out/lib/systemd/system/$(basename ${i%.in})"
done