1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh

13 lines
278 B
Bash

source $stdenv/setup
ensureDir "$(dirname $out/dev/MAKEDEV)"
ensureDir "$(dirname $out/sbin/MAKEDEV)"
cat > $out/dev/MAKEDEV << END
#! $SHELL -e
exec $MAKEDEV/dev/MAKEDEV -c $MAKEDEV/etc/makedev.d/ "\$@"
END
chmod +x $out/dev/MAKEDEV
ln -s $out/dev/MAKEDEV $out/sbin/MAKEDEV