summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-29 15:50:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-29 15:50:05 +0000
commit74c265eec20055bc885962af89904d086c53a299 (patch)
tree6e826bf37fe32d77a8d33d61fab25850b4e6d620
parentff28489c83f4ae02fd61a15f754e7be125e92183 (diff)
downloaddrakx-74c265eec20055bc885962af89904d086c53a299.tar
drakx-74c265eec20055bc885962af89904d086c53a299.tar.gz
drakx-74c265eec20055bc885962af89904d086c53a299.tar.bz2
drakx-74c265eec20055bc885962af89904d086c53a299.tar.xz
drakx-74c265eec20055bc885962af89904d086c53a299.zip
don't cp devices, mknod them
-rwxr-xr-xmake_boot_img6
1 files changed, 3 insertions, 3 deletions
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;