/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-migrateHWaddr.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-migrateHWaddr.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Feb 18 06:21:36 2014 UTC (10 years, 8 months ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove obsolete patch files

1 slords 1.1 diff -up e-smith-base-5.2.0/root/etc/e-smith/db/configuration/migrate/20interfaceMac.migrateHWaddr e-smith-base-5.2.0/root/etc/e-smith/db/configuration/migrate/20interfaceMac
2     --- e-smith-base-5.2.0/root/etc/e-smith/db/configuration/migrate/20interfaceMac.migrateHWaddr 2010-10-11 16:54:44.000000000 -0600
3     +++ e-smith-base-5.2.0/root/etc/e-smith/db/configuration/migrate/20interfaceMac 2010-10-11 17:16:20.000000000 -0600
4     @@ -0,0 +1,18 @@
5     +{
6     + foreach my $iface ( qw(InternalInterface ExternalInterface) )
7     + {
8     + my $iface = $DB->get($iface) || next;
9     + next if $iface->prop('HWAddress');
10     +
11     + if ($iface->prop('Name') =~ m{^(eth[0-9])$})
12     + {
13     + if (open(MAC, "/sys/class/net/$1/address"))
14     + {
15     + $addr=<MAC>;
16     + close(MAC);
17     + chomp $addr;
18     + $iface->set_prop('HWAddress', $addr);
19     + }
20     + }
21     + }
22     +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed