diff options
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; } |