Handle hostnames with upper-case letters
[webmin.git] / dhcpd / backup_config.pl
1
2 do 'dhcpd-lib.pl';
3
4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
7 {
8 local $conf = &get_config();
9 local @rv = map { $_->{'file'} } @$conf;
10 return &unique(@rv);
11 }
12
13 # pre_backup(&files)
14 # Called before the files are actually read
15 sub pre_backup
16 {
17 return undef;
18 }
19
20 # post_backup(&files)
21 # Called after the files are actually read
22 sub post_backup
23 {
24 return undef;
25 }
26
27 # pre_restore(&files)
28 # Called before the files are restored from a backup
29 sub pre_restore
30 {
31 return undef;
32 }
33
34 # post_restore(&files)
35 # Called after the files are restored from a backup
36 sub post_restore
37 {
38 if (&is_dhcpd_running()) {
39         return &restart_dhcpd();
40         }
41 return undef;
42 }
43
44 1;
45