diff options
author | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-01-21 19:07:38 +0100 |
---|---|---|
committer | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-01-21 19:07:38 +0100 |
commit | 709c78569b26677624e60588fa1166dc659ac93c (patch) | |
tree | 2bd5555af31b637d03693b8563fb24b41bf1f22b /bootstrap/make-dhcpd-include.pl | |
parent | f5da0d943401e527f5162e9c6344deb65b19b045 (diff) |
chore: cleanup repo
Diffstat (limited to 'bootstrap/make-dhcpd-include.pl')
-rwxr-xr-x | bootstrap/make-dhcpd-include.pl | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/bootstrap/make-dhcpd-include.pl b/bootstrap/make-dhcpd-include.pl deleted file mode 100755 index 86673cb..0000000 --- a/bootstrap/make-dhcpd-include.pl +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/perl -I /root/tgmanage -use strict; -my $base = "/etc"; -$base = $ARGV[0] if $#ARGV > -1; -$base .= "/" if not $base =~ m/\/$/ and not $base eq ""; - -my $dhcpd_base = $base . "dhcp/"; -my $includeconfig = $dhcpd_base . "v4-generated-include.conf"; - -my $glob = $dhcpd_base . "conf-v4/*.conf"; -my @configs = glob($glob); - -open CONF, ">" . $includeconfig or die ( $! . " " . $includeconfig); -foreach my $config ( @configs ) -{ - print CONF "include \"" . $config . "\";\n"; -} -close CONF; - -$includeconfig = $dhcpd_base . "v6-generated-include.conf"; - -my $glob = $dhcpd_base . "conf-v6/*.conf"; -my @configs = glob($glob); - -open CONF, ">" . $includeconfig or die ( $! . " " . $includeconfig); -foreach my $config ( @configs ) -{ - print CONF "include \"" . $config . "\";\n"; -} -close CONF;
\ No newline at end of file |