diff options
author | Stew Benedict <stewb@mandriva.org> | 2001-03-15 14:53:09 +0000 |
---|---|---|
committer | Stew Benedict <stewb@mandriva.org> | 2001-03-15 14:53:09 +0000 |
commit | 5dd25e576d6ac8152e44075dfdb229e1337adf14 (patch) | |
tree | 8af7a441fceb29adcef885ac73d2ba516667c464 /perl-install/detect_devices.pm | |
parent | b20fa07a463ad522aeee545eecf3fff7dbb65a6f (diff) | |
download | drakx-5dd25e576d6ac8152e44075dfdb229e1337adf14.tar drakx-5dd25e576d6ac8152e44075dfdb229e1337adf14.tar.gz drakx-5dd25e576d6ac8152e44075dfdb229e1337adf14.tar.bz2 drakx-5dd25e576d6ac8152e44075dfdb229e1337adf14.tar.xz drakx-5dd25e576d6ac8152e44075dfdb229e1337adf14.zip |
bootloader.pm, detect_devices.pm, install_steps_interactive.pm: changed temporary file read/write per Pixel
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 81c488a9c..d3bdbf8b7 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -55,14 +55,15 @@ sub burners { grep { $_->{type} eq 'cdrom' && isBurner($_->{device}) } get() sub IDEburners { grep { $_->{type} eq 'cdrom' && isBurner($_->{device}) } getIDE() } sub get_mac_model() { - open(FILE, "/proc/device-tree/model") || die "Can't open /proc/device-tree/model"; - my $mac_model = ""; - local $_ = ""; - while (<FILE>){ - $mac_model = $_; - } - close(FILE); - chop($mac_model); +# open(FILE, "/proc/device-tree/model") || die "Can't open /proc/device-tree/model"; +# my $mac_model = ""; +# local $_ = ""; +# while (<FILE>){ +# $mac_model = $_; +# } +# close(FILE); + my $mac_model = cat_("/proc/device-tree/model") || die "Can't open /proc/device-tree/model"; +# chop($mac_model); log::l("Mac model: $mac_model"); $mac_model; } |