diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-08-29 15:50:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-08-29 15:50:05 +0000 |
commit | 74c265eec20055bc885962af89904d086c53a299 (patch) | |
tree | 6e826bf37fe32d77a8d33d61fab25850b4e6d620 /make_boot_img | |
parent | ff28489c83f4ae02fd61a15f754e7be125e92183 (diff) | |
download | drakx-backup-do-not-use-74c265eec20055bc885962af89904d086c53a299.tar drakx-backup-do-not-use-74c265eec20055bc885962af89904d086c53a299.tar.gz drakx-backup-do-not-use-74c265eec20055bc885962af89904d086c53a299.tar.bz2 drakx-backup-do-not-use-74c265eec20055bc885962af89904d086c53a299.tar.xz drakx-backup-do-not-use-74c265eec20055bc885962af89904d086c53a299.zip |
don't cp devices, mknod them
Diffstat (limited to 'make_boot_img')
-rwxr-xr-x | make_boot_img | 6 |
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; |