-
Notifications
You must be signed in to change notification settings - Fork 0
/
e-smith-base-5.2.0-no-nic.patch
31 lines (28 loc) · 1.27 KB
/
e-smith-base-5.2.0-no-nic.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -up e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm.no-nic e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm
--- e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm.no-nic 2010-06-05 15:18:46.000000000 +0200
+++ e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm 2010-06-06 08:31:25.000000000 +0200
@@ -79,6 +79,18 @@ sub ethernetSelect($$)
$existing_hwaddr = $db->get_prop("InternalInterface", "HWAddress");
}
+ if ( @adapters == 0 ) {
+
+ my ($rc, $choice) = $console->message_page
+ (
+ title => gettext("No network interfaces found"),
+ text => gettext("The installer can't continue because no network interfaces are installed or recognised. Please install at least one network interface."),
+ );
+
+ return 'NONIC';
+
+ }
+
foreach my $adapter ( @adapters )
{
my ($parameter, $driver, $hwaddr, $chipset) = split (/\s+/, $adapter, 4);
@@ -268,6 +280,8 @@ ETHERNET_LOCAL:
goto SYSTEM_NAME if ($selectMode eq 'CANCEL');
+ goto QUIT1 if ($selectMode eq 'NONIC');
+
if ($selectMode eq 'NOLOAD')
{
failed_to_load($newDriver);