Changeset 2812 in /cluster/svnroot


Ignore:
Timestamp:
Nov 11, 2010 1:13:29 PM (10 years ago)
Author:
leemasa
Message:

Added autologin and auto DHCP for test mode

Location:
bccd-ng/branches/sam-test_fw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/sam-test_fw/packages/etc/init.d/bccd-passwd

    r2811 r2812  
    2222        update-rc.d ssh defaults
    2323        sed -i 's/\/sbin\/getty 38400/\/sbin\/mingetty --autologin bccd/' /etc/inittab
     24        telinit -q
    2425exit 0
    2526fi
  • bccd-ng/branches/sam-test_fw/trees/usr/local/lib/site_perl/5.10.0/Bccd.pm

    r2810 r2812  
    15581558    $self->enter_sub($sub);
    15591559    $self->leave_sub($sub);
    1560     print "not ok ".get_total($self)." - $msg %!\n";
     1560    print "not ok ".get_total($self)." - $msg\n";
    15611561}
    15621562
     
    22342234                }
    22352235            }
     2236            elsif(defined($nic_conf->{$nic}->{'dhcp_source'}) && -e "/testmode")
     2237            {
     2238                    $nic_conf->{$nic}->{'dhcp'} = 1;
     2239            }   
    22362240            elsif(defined($nic_conf->{$nic}->{'dhcp_source'}) && $d->yesno(text=>"$nic has an IP address $nic_conf->{$nic}->{'ipaddr'} from $nic_conf->{$nic}->{'dhcp_source'}. Take this address?")) {
    22372241                $nic_conf->{$nic}->{'dhcp'} = 1;
Note: See TracChangeset for help on using the changeset viewer.