From 74c265eec20055bc885962af89904d086c53a299 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 29 Aug 2001 15:50:05 +0000 Subject: don't cp devices, mknod them --- make_boot_img | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'make_boot_img') diff --git a/make_boot_img b/make_boot_img index 5aa2c4fe2..b7a48b99b 100755 --- a/make_boot_img +++ b/make_boot_img @@ -83,9 +83,9 @@ sub initrd { if ($type eq "network" || $type eq "usbnet" || $type eq "all" || $type eq "other" || $type eq "blank") { install_stripped("$instdir/ppp/pppd-bin", "$mnt/sbin/pppd"); install_stripped("$instdir/rp-pppoe/pppoe-bin", "$mnt/sbin/pppoe"); - _ "$sudo cp -a /dev/ppp $mnt/dev"; - _ "$sudo cp -a /dev/ptyp0 $mnt/dev"; - _ "$sudo cp -a /dev/ttyp0 $mnt/dev"; + _ "$sudo mknod $mnt/dev/ppp c 108 0"; + _ "$sudo mknod $mnt/dev/ptyp0 c 2 0"; + _ "$sudo mknod $mnt/dev/ttyp0 c 3 0"; } my $ftype = $type =~ /^(all)$/ ? "pcmcia" : $type; -- cgit v1.2.1