Changeset 58 for devel/dploy-dhcp
- Timestamp:
- 06/02/08 18:59:34 (4 years ago)
- File:
-
- 1 edited
-
devel/dploy-dhcp/bin/dploy-add2dhcp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/dploy-dhcp/bin/dploy-add2dhcp
r53 r58 93 93 dploy_check_ip($opts{'gw'},"Wrong IP address for GW server"); 94 94 my $gwobj = new Net::Netmask($opts{'gw'},$opts{'mask'}); 95 if (($iprange != $gwobj->base()) || ($cidr !=$gwobj->bits())) {95 if (($iprange ne $gwobj->base()) || ($cidr ne $gwobj->bits())) { 96 96 print "Gateway is not in the correct subnet \n"; 97 97 pb_syntax(-1,0); … … 135 135 136 136 if ($foundit == 0) { 137 open(DHCPMAIN, ">>$dhcpmain") || die "Unable to open$dhcpmain: $!";137 open(DHCPMAIN, ">>$dhcpmain") || die "Unable to write $dhcpmain: $!"; 138 138 print DHCPMAIN "include \"$dhcpsub\";\n"; 139 139 close(DHCPMAIN);
Note: See TracChangeset
for help on using the changeset viewer.
