mirror of
https://git.valherun.com/valherun/pxe_boot_alma.git
synced 2026-10-15 22:22:03 -04:00
- restructure boot/kickstarts/scripts/docs into homelab/ - docs: alma9->10 breaking changes, CIS hardening, kickstart changes - add find_cron_entries.sh helper and codex running memory notes Co-Authored-By: Claude Fable 5 <[email protected]>
17 lines
345 B
Perl
Executable File
17 lines
345 B
Perl
Executable File
#!/usr/bin/perl
|
|
##
|
|
## printenv -- demo CGI program which just prints its environment
|
|
##
|
|
|
|
print "Content-type: text/plain\n\n";
|
|
foreach $var (sort(keys(%ENV))) {
|
|
$val = $ENV{$var};
|
|
$val =~ s|\n|\\n|g;
|
|
$val =~ s|"|\\"|g;
|
|
print "${var}=\"${val}\"\n";
|
|
}
|
|
|
|
$mac = `arp -a $ENV{REMOTE_ADDR} |cut -d ' ' -f 4`;
|
|
print "\nMAC = $mac\n";
|
|
|