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
|