mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
91a5fe9eb0
device should be enabled on the host in order for the UML machine to be able to talk to the Internet. svn path=/nixu/trunk/; revision=806
23 lines
542 B
Bash
Executable File
23 lines
542 B
Bash
Executable File
#! /bin/sh -e
|
|
|
|
. $stdenv/setup
|
|
|
|
mkdir $out
|
|
mkdir $out/bin
|
|
|
|
for i in $boot $halt $login $env; do
|
|
dst=$out/bin/$(basename $i | cut -c34-)
|
|
sed \
|
|
-e "s^@bash\@^$bash^g" \
|
|
-e "s^@coreutils\@^$coreutils^g" \
|
|
-e "s^@findutils\@^$findutils^g" \
|
|
-e "s^@utillinux\@^$utillinux^g" \
|
|
-e "s^@sysvinit\@^$sysvinit^g" \
|
|
-e "s^@e2fsprogs\@^$e2fsprogs^g" \
|
|
-e "s^@nettools\@^$nettools^g" \
|
|
-e "s^@nix\@^$nix^g" \
|
|
-e "s^@out\@^$out^g" \
|
|
< $i > $dst
|
|
chmod +x $dst
|
|
done
|