]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Early spring clean: Remove trailing whitespaces, and correct licence headers
authorPeter Müller <peter.mueller@ipfire.org>
Fri, 18 Feb 2022 23:54:57 +0000 (23:54 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Fri, 18 Feb 2022 23:54:57 +0000 (23:54 +0000)
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
511 files changed:
html/cgi-bin/aliases.cgi
html/cgi-bin/atm-status.cgi
html/cgi-bin/chpasswd.cgi
html/cgi-bin/connections.cgi
html/cgi-bin/connscheduler.cgi
html/cgi-bin/dhcp.cgi
html/cgi-bin/dnsforward.cgi
html/cgi-bin/extrahd.cgi
html/cgi-bin/firewall.cgi
html/cgi-bin/fwhosts.cgi
html/cgi-bin/getrrdimage.cgi
html/cgi-bin/gpl.cgi
html/cgi-bin/hosts.cgi
html/cgi-bin/index.cgi
html/cgi-bin/iptables.cgi
html/cgi-bin/logs.cgi/calamaris.dat
html/cgi-bin/logs.cgi/firewalllog.dat
html/cgi-bin/logs.cgi/firewalllogcountry.dat
html/cgi-bin/logs.cgi/firewalllogip.dat
html/cgi-bin/logs.cgi/firewalllogport.dat
html/cgi-bin/logs.cgi/ids.dat
html/cgi-bin/logs.cgi/ovpnclients.dat
html/cgi-bin/logs.cgi/proxylog.dat
html/cgi-bin/logs.cgi/showrequestfromcountry.dat
html/cgi-bin/logs.cgi/showrequestfromip.dat
html/cgi-bin/logs.cgi/showrequestfromport.dat
html/cgi-bin/logs.cgi/summary.dat
html/cgi-bin/logs.cgi/urlfilter.dat
html/cgi-bin/mac.cgi
html/cgi-bin/mail.cgi
html/cgi-bin/modem.cgi
html/cgi-bin/netexternal.cgi
html/cgi-bin/ovpnmain.cgi
html/cgi-bin/proxy.cgi
html/cgi-bin/remote.cgi
html/cgi-bin/routing.cgi
html/cgi-bin/samba.cgi
html/cgi-bin/speed.cgi
html/cgi-bin/time.cgi
html/cgi-bin/updatexlrator.cgi
html/cgi-bin/urlfilter.cgi
html/cgi-bin/vulnerabilities.cgi
html/cgi-bin/wakeonlan.cgi
html/cgi-bin/webaccess.cgi
html/cgi-bin/wireless.cgi
html/cgi-bin/wirelessclient.cgi
html/cgi-bin/zoneconf.cgi
html/html/include/rrdimage.js
html/html/redirect-templates/legacy/template.html
html/html/redirect.cgi
html/html/themes/ipfire/include/functions.pl
lfs/7zip
lfs/Config
lfs/alac
lfs/alsa
lfs/apcupsd
lfs/avahi
lfs/aws-cli
lfs/backup
lfs/bacula
lfs/binutils
lfs/bird
lfs/br2684ctl
lfs/bwm-ng
lfs/c-ares
lfs/ca-certificates
lfs/cifs-utils
lfs/clamav
lfs/cleanup-toolchain
lfs/collectd
lfs/core-updates
lfs/cpufrequtils
lfs/cups-filters
lfs/dbus
lfs/ddrescue
lfs/dehydrated
lfs/dnsdist
lfs/ebtables
lfs/elfutils
lfs/elinks
lfs/epson-inkjet-printer-escpr
lfs/faad2
lfs/fake-environ
lfs/fcron
lfs/fetchmail
lfs/ffmpeg
lfs/firmware-update
lfs/flac
lfs/flashrom
lfs/flex
lfs/foomatic
lfs/fping
lfs/freefont
lfs/freeradius
lfs/frr
lfs/gcc
lfs/ghostscript
lfs/gnump3d
lfs/gptfdisk
lfs/gutenprint
lfs/haproxy
lfs/hplip
lfs/htop
lfs/i2c-tools
lfs/icinga
lfs/iftop
lfs/igmpproxy
lfs/intltool
lfs/iperf
lfs/iptraf-ng
lfs/jansson
lfs/joe
lfs/jq
lfs/json-c
lfs/keyutils
lfs/knot
lfs/krb5
lfs/lame
lfs/lcdproc
lfs/libaio
lfs/libarchive
lfs/libassuan
lfs/libcdada
lfs/libdaemon
lfs/libedit
lfs/libexif
lfs/libffi
lfs/libid3tag
lfs/libinih
lfs/libmad
lfs/libmpdclient
lfs/libmpeg2
lfs/libnl
lfs/libnl-3
lfs/libogg
lfs/libpri
lfs/libshout
lfs/libsolv
lfs/libstatgrab
lfs/libtalloc
lfs/libtiff
lfs/libtool
lfs/liburcu
lfs/libvirt
lfs/libvorbis
lfs/libyang
lfs/linux
lfs/lm_sensors
lfs/lmdb
lfs/logwatch
lfs/lshw
lfs/lvm2
lfs/lz4
lfs/make
lfs/mc
lfs/mcelog
lfs/mdadm
lfs/mdns-repeater
lfs/minicom
lfs/minidlna
lfs/mpc
lfs/mpd
lfs/mpfire
lfs/mtr
lfs/multipath-tools
lfs/nagios-plugins
lfs/nagios_nrpe
lfs/ncat
lfs/ncdu
lfs/netatalk
lfs/netpbm
lfs/nfs
lfs/ninja
lfs/ntfs-3g
lfs/nut
lfs/observium-agent
lfs/openvmtools
lfs/opus
lfs/pakfire
lfs/parted
lfs/pcmciautils
lfs/perl-Archive-Tar
lfs/perl-Archive-Zip
lfs/perl-Authen-SASL
lfs/perl-BerkeleyDB
lfs/perl-Carp-Clan
lfs/perl-Convert-TNEF
lfs/perl-Convert-UUlib
lfs/perl-Date-Calc
lfs/perl-Date-Manip
lfs/perl-File-Tail
lfs/perl-IO-Stringy
lfs/perl-MIME-Base64
lfs/perl-Net-SMTP-SSL
lfs/perl-Net-Server
lfs/perl-Parse-Yapp
lfs/perl-TimeDate
lfs/perl-gettext
lfs/pigz
lfs/pmacct
lfs/postfix
lfs/powertop
lfs/proxy-accounting
lfs/python3-packaging
lfs/python3-pyasn1
lfs/python3-pyproject2setuppy
lfs/python3-toml
lfs/python3-tomli
lfs/qemu
lfs/qemu-ga
lfs/rpcbind
lfs/rsync
lfs/rtl8189es
lfs/rtl8812au
lfs/rtl8822bu
lfs/rust-aho-corasick
lfs/rust-autocfg
lfs/rust-block-buffer
lfs/rust-cfg-if
lfs/rust-cipher
lfs/rust-crossbeam-channel
lfs/rust-crossbeam-deque
lfs/rust-crossbeam-epoch
lfs/rust-crossbeam-utils
lfs/rust-crypto-common
lfs/rust-ctor
lfs/rust-digest
lfs/rust-dirs
lfs/rust-dissimilar
lfs/rust-either
lfs/rust-generic-array
lfs/rust-getrandom
lfs/rust-ghost
lfs/rust-glob
lfs/rust-hex
lfs/rust-home
lfs/rust-indoc
lfs/rust-indoc-impl
lfs/rust-instant
lfs/rust-inventory
lfs/rust-inventory-impl
lfs/rust-itoa
lfs/rust-lazy-static
lfs/rust-libc
lfs/rust-lock_api
lfs/rust-log
lfs/rust-memchr
lfs/rust-memoffset
lfs/rust-num_cpus
lfs/rust-once_cell
lfs/rust-parking_lot
lfs/rust-parking_lot_core
lfs/rust-paste
lfs/rust-paste-impl
lfs/rust-pest
lfs/rust-ppv-lite86
lfs/rust-proc-macro-hack
lfs/rust-proc-macro2
lfs/rust-pyo3
lfs/rust-pyo3-build-config
lfs/rust-pyo3-macros
lfs/rust-pyo3-macros-backend
lfs/rust-quote
lfs/rust-rand
lfs/rust-rand-0.4
lfs/rust-rand_chacha
lfs/rust-rand_core
lfs/rust-rand_core-0.3.1
lfs/rust-rand_core-0.4.2
lfs/rust-rand_hc
lfs/rust-rayon
lfs/rust-rayon-core
lfs/rust-rdrand
lfs/rust-regex
lfs/rust-regex-syntax
lfs/rust-remove_dir_all
lfs/rust-ryu
lfs/rust-same-file
lfs/rust-scopeguard
lfs/rust-semver
lfs/rust-semver-parser
lfs/rust-serde
lfs/rust-serde_derive
lfs/rust-serde_json
lfs/rust-smallvec
lfs/rust-syn
lfs/rust-synstructure
lfs/rust-tempdir
lfs/rust-termcolor
lfs/rust-toml
lfs/rust-toolchain_find
lfs/rust-trybuild
lfs/rust-typenum
lfs/rust-ucd-trie
lfs/rust-unicode-xid
lfs/rust-unindent
lfs/rust-version-check
lfs/rust-walkdir
lfs/sarg
lfs/sdparm
lfs/sed
lfs/shairport-sync
lfs/socat
lfs/sox
lfs/soxr
lfs/spandsp
lfs/spectre-meltdown-checker
lfs/speedtest-cli
lfs/spice
lfs/squid
lfs/squidclamav
lfs/squidguard
lfs/sshfs
lfs/sslh
lfs/stage2
lfs/stress
lfs/swatch
lfs/sysbench
lfs/sysvinit
lfs/taglib
lfs/tcpdump
lfs/telnet
lfs/tftpd
lfs/tmux
lfs/traceroute
lfs/transmission
lfs/tshark
lfs/u-boot
lfs/u-boot-friendlyarm
lfs/vdr
lfs/vdr_dvbapi
lfs/vdr_eepg
lfs/vdr_epgsearch
lfs/vdr_streamdev
lfs/vdradmin
lfs/vnstat
lfs/w_scan
lfs/watchdog
lfs/wavemon
lfs/web-user-interface
lfs/whatmask
lfs/wio
lfs/xfsprogs
lfs/xinetd
lfs/xradio
lfs/xvid
lfs/zerofree
lfs/zstd
src/br2684ctl/br2684ctl.c
src/initscripts/helper/aws-setup
src/initscripts/helper/azure-setup
src/initscripts/helper/exoscale-setup
src/initscripts/helper/gcp-setup
src/initscripts/helper/getdnsfromdhcpc.pl
src/initscripts/helper/oci-setup
src/initscripts/networking/any
src/initscripts/networking/dhcpcd.exe
src/initscripts/networking/functions.network
src/initscripts/networking/red
src/initscripts/networking/wpa_supplicant.exe
src/initscripts/packages/alsa
src/initscripts/packages/amazon-ssm-agent
src/initscripts/packages/apcupsd
src/initscripts/packages/avahi
src/initscripts/packages/bacula
src/initscripts/packages/bird
src/initscripts/packages/clamav
src/initscripts/packages/cpufreq
src/initscripts/packages/cups
src/initscripts/packages/cyrus-sasl
src/initscripts/packages/dnsdist
src/initscripts/packages/fetchmail
src/initscripts/packages/freeradius
src/initscripts/packages/frr
src/initscripts/packages/gnump3d
src/initscripts/packages/guardian
src/initscripts/packages/haproxy
src/initscripts/packages/hostapd
src/initscripts/packages/keepalived
src/initscripts/packages/lcdproc
src/initscripts/packages/lcr [deleted file]
src/initscripts/packages/libvirtd
src/initscripts/packages/mdns-repeater
src/initscripts/packages/messagebus
src/initscripts/packages/minidlna
src/initscripts/packages/monit
src/initscripts/packages/mpd
src/initscripts/packages/netatalk
src/initscripts/packages/netsnmpd
src/initscripts/packages/nfs-server
src/initscripts/packages/nrpe
src/initscripts/packages/nut
src/initscripts/packages/openvmtools
src/initscripts/packages/pmacct
src/initscripts/packages/postfix
src/initscripts/packages/qemu-ga
src/initscripts/packages/rpcbind
src/initscripts/packages/samba
src/initscripts/packages/shairport-sync
src/initscripts/packages/sslh
src/initscripts/packages/stunnel
src/initscripts/packages/tftpd
src/initscripts/packages/tor
src/initscripts/packages/transmission
src/initscripts/packages/vdr
src/initscripts/packages/vdradmin
src/initscripts/packages/virtlogd
src/initscripts/packages/watchdog
src/initscripts/packages/xinetd
src/initscripts/packages/zabbix_agentd
src/initscripts/sysconfig/rc.local
src/initscripts/system/acpid
src/initscripts/system/apache
src/initscripts/system/beep
src/initscripts/system/checkfs
src/initscripts/system/cleanfs
src/initscripts/system/cloud-init
src/initscripts/system/collectd
src/initscripts/system/connectd
src/initscripts/system/conntrackd
src/initscripts/system/console
src/initscripts/system/dhcp
src/initscripts/system/dhcrelay
src/initscripts/system/fcron
src/initscripts/system/fireinfo
src/initscripts/system/firewall
src/initscripts/system/firstsetup
src/initscripts/system/fsresize
src/initscripts/system/functions
src/initscripts/system/halt
src/initscripts/system/leds
src/initscripts/system/localnet
src/initscripts/system/lvmetad
src/initscripts/system/modules
src/initscripts/system/mountfs
src/initscripts/system/mountkernfs
src/initscripts/system/mounttmpfs
src/initscripts/system/network
src/initscripts/system/ntp
src/initscripts/system/pakfire
src/initscripts/system/partresize
src/initscripts/system/random
src/initscripts/system/rc
src/initscripts/system/reboot
src/initscripts/system/rngd
src/initscripts/system/sendsignals
src/initscripts/system/setclock
src/initscripts/system/smartenabler
src/initscripts/system/smt
src/initscripts/system/squid
src/initscripts/system/sshd
src/initscripts/system/static-routes
src/initscripts/system/suricata
src/initscripts/system/swap
src/initscripts/system/swconfig
src/initscripts/system/sysctl
src/initscripts/system/sysklogd
src/initscripts/system/template
src/initscripts/system/udev
src/initscripts/system/udev_retry
src/initscripts/system/unbound
src/initscripts/system/vnstat
src/initscripts/system/waitdrives
src/initscripts/system/wlanclient
src/libsmooth/libsmooth.h
src/libsmooth/main.c
src/libsmooth/varval.c
src/misc-progs/addonctrl.c
src/misc-progs/fireinfoctrl.c
src/misc-progs/getipstat.c
src/misc-progs/iowrap.c
src/misc-progs/ipfirereboot.c
src/misc-progs/ipsecctrl.c
src/misc-progs/openvpnctrl.c
src/misc-progs/rebuildhosts.c
src/misc-progs/sambactrl.c
src/misc-progs/setaliases.c
src/misc-progs/setuid.h
src/misc-progs/sshctrl.c
src/misc-progs/syslogdctrl.c
src/misc-progs/updxlratorctrl.c
src/misc-progs/urlfilterctrl.c
src/misc-progs/wiohelper.c
src/pakfire/lib/functions.pl
src/pakfire/pakfire
src/scripts/archive.files
src/scripts/backupiso
src/scripts/captive-cleanup
src/scripts/connscheduler
src/scripts/consort.sh
src/scripts/convert-dns-settings
src/scripts/convert-ovpn
src/scripts/convert-to-location
src/scripts/filesystem-cleanup
src/scripts/hddshutdown
src/scripts/ipsec-interfaces
src/scripts/makegraphs
src/scripts/openvpn-metrics
src/scripts/ovpn-ccd-convert
src/scripts/ovpn-collectd-convert
src/scripts/qosd
src/scripts/rebuild-initrd
src/scripts/scanhd
src/scripts/settime
src/scripts/timecheck
src/scripts/timezone-transition
src/scripts/update-ids-ruleset
src/scripts/update-lang-cache
src/scripts/update-location-database
tools/check_manualpages.pl
tools/sort_strings.pl

index 85ed27204854d9a7cf02abb83dddd9d91623d855..7b80b3c844089289745531454d82c426ae263be1 100644 (file)
@@ -62,7 +62,7 @@ $settings{'IP'} = '';
 $settings{'ENABLED'} = 'off';          # Every check box must be set to off
 $settings{'NAME'} = '';
 my @nosaved=('IP','ENABLED','NAME');   # List here ALL setting2 fields. Mandatory
-    
+
 $settings{'ACTION'} = '';              # add/edit/remove
 $settings{'KEY1'} = '';                        # point record for ACTION
 
@@ -94,16 +94,16 @@ if (open(FILE, "$datafile")) {
 # Remove if no Setting1 needed
 #
 if ($settings{'ACTION'} eq $Lang::tr{'save'}) {
-    
+
     #
     #Validate static Settings1 here
     #
     unless ($errormessage) {                                   # Everything is ok, save settings
-       #map (delete ($settings{$_}) ,(@nosaved,'ACTION','KEY1'));# Must never be saved 
+       #map (delete ($settings{$_}) ,(@nosaved,'ACTION','KEY1'));# Must never be saved
        #&General::writehash($setting, \%settings);             # Save good settings
        #$settings{'ACTION'} = $Lang::tr{'save'};               # Recreate  'ACTION'
        #map ($settings{$_}= '',(@nosaved,'KEY1'));             # and reinit var to empty
-       
+
        # Rebuild configuration file if needed
        &BuildConfiguration;
 
@@ -133,14 +133,14 @@ if ($settings{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
     $temp[2] = '' if ( $temp[2] eq '' );
     @current[$settings{'KEY1'}] = join (',',@temp)."\n";
     $settings{'KEY1'} = '';                            # End edit mode
-    
+
     &General::log($Lang::tr{'ip alias changed'});
-    
+
     #Save current
     open(FILE, ">$datafile") or die 'Unable to open aliases file.';
     print FILE @current;
     close(FILE);
-       
+
     # Rebuild configuration file
     &BuildConfiguration;
 
@@ -230,7 +230,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
 
        # Handle Suricata related actions.
        &HandleSuricata();
-       
+
 ##
 ## if entering data line is repetitive, choose here to not erase fields between each addition
 ##
@@ -253,7 +253,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'edit'}) {
 }
 
 if ($settings{'ACTION'} eq $Lang::tr{'remove'}) {
-    splice (@current,$settings{'KEY1'},1);             # Delete line 
+    splice (@current,$settings{'KEY1'},1);             # Delete line
     open(FILE, ">$datafile") or die 'Unable to open aliases file.';
     print FILE @current;
     close(FILE);
@@ -291,7 +291,7 @@ if ($ENV{'QUERY_STRING'} =~ /$sortstring/ ) {
 if ($settings{'ACTION'} eq '' ) { # First launch from GUI
     $settings{'ENABLED'} ='on';
 }
-    
+
 &Header::openpage($Lang::tr{'external aliases configuration'}, 1, '');
 &Header::openbigbox('100%', 'left', '', $errormessage);
 my %checked =();     # Checkbox manipulations
@@ -314,7 +314,7 @@ END
 ;
     &Header::closebox();
 }
-                                                                       
+
 #
 # Second check box is for editing the list
 #
@@ -406,7 +406,7 @@ foreach my $line (@current) {
        $gdesc = $Lang::tr{'click to disable'};
     } else {
        $gif = 'off.gif';
-       $gdesc = $Lang::tr{'click to enable'}; 
+       $gdesc = $Lang::tr{'click to enable'};
     }
 
     #Colorize each line
@@ -488,7 +488,7 @@ END
 sub SortDataFile
 {
     our %entries = ();
-    
+
     # Sort pair of record received in $a $b special vars.
     # When IP is specified use numeric sort else alpha.
     # If sortname ends with 'Rev', do reverse sort.
@@ -527,27 +527,27 @@ sub SortDataFile
     foreach my $line (@current) {
        chomp( $line); #remove newline because can be on field 5 or 6 (addition of REMARK)
        my @temp = split (',',$line);
-       
+
        # Build a pair 'Field Name',value for each of the data dataline.
        # Each SORTABLE field must have is pair.
        # Other data fields (non sortable) can be grouped in one
-       
+
        # Exemple
        # F1,F2,F3,F4,F5       only F1 F2 for sorting
        # my @record = ('KEY',$key++,
        #               'F1',$temp[0],
        #               'F2',$temp[1],
        #               'DATA',join(',',@temp[2..4])    );  #group remainning values, with separator (,)
-       
+
        # The KEY,key record permits doublons. If removed, then F1 becomes the key without doublon permitted.
-       
-       
+
+
        my @record = ('KEY',$key++,'IP',$temp[0],'ENABLED',$temp[1],'NAME',$temp[2]);
        my $record = {};                                # create a reference to empty hash
        %{$record} = @record;                           # populate that hash with @record
        $entries{$record->{KEY}} = $record;             # add this to a hash of hashes
     }
-    
+
     open(FILE, ">$datafile") or die 'Unable to open aliases file.';
 
     # Each field value is printed , with the newline ! Don't forget separator and order of them.
@@ -562,7 +562,7 @@ sub SortDataFile
     close (FILE);
 }
 
-#                                                  
+#
 # Build the configuration file for application aliases
 #
 sub BuildConfiguration {
index 49f19209d1634ebaf8069e5a749640fb471f8595..fb38dc03042004f894175f4aea452f1eb83b82cd 100644 (file)
@@ -53,18 +53,18 @@ foreach (@modems){
                my $value= `cat /sys/class/atm/$modem/parameters/$param`;
                chomp($param);
                chomp($value);
-               if (!($param =~"uevent") 
+               if (!($param =~"uevent")
                  && !($param =~"resource")
                  && !($param eq "")
                ) {
-                               
+
                        $lines++;
                        if ($lines % 2){
                                print "<tr bgcolor='$color{'color22'}'>";
                        }else{
                                print "<tr bgcolor='$color{'color20'}'>";
                        }
-                       print "<td align='left'>$param</td><td align='left'>$value</td> ";              
+                       print "<td align='left'>$param</td><td align='left'>$value</td> ";
                }
        }
        my @pfile = `grep . /sys/class/atm/$modem/device/* 2>/dev/null`;
@@ -74,8 +74,8 @@ foreach (@modems){
                my $value= `cat /sys/class/atm/$modem/device/$param`;
                chomp($param);
                chomp($value);
-               if (!($param =~"uevent") 
-                 && !($param =~"modalias") 
+               if (!($param =~"uevent")
+                 && !($param =~"modalias")
                  && !($param =~"bInterface")
                  && !($param =~"bAlternateSetting")
                  && !($param =~"bNumEndpoints")
@@ -83,14 +83,14 @@ foreach (@modems){
                  && !($param =~"resource")
                  && !($param eq "")
                ) {
-                               
+
                        $lines++;
                        if ($lines % 2){
                                print "<tr bgcolor='$color{'color22'}'>";
                        }else{
                                print "<tr bgcolor='$color{'color20'}'>";
                        }
-                       print "<td align='left'>$param</td><td align='left'>$value</td> ";              
+                       print "<td align='left'>$param</td><td align='left'>$value</td> ";
                }
        }
        print "</table><br>\n";
index 0a66062edbf63a3bb81a275e43e4926b73a2266d..4930c4ca3d4347b152e4e075bb65f38c4d26018f 100644 (file)
@@ -240,7 +240,7 @@ sub readhash
                        {
                                $val =~ s/^\'//g;
                                $val =~ s/\'$//g;
-       
+
                                # Untaint variables read from hash
                                $var =~ /([A-Za-z0-9_-]*)/;        $var = $1;
                                $val =~ /([\w\W]*)/; $val = $1;
index 10ac8748c0895a6ef4d6c330262148df5b1fb213..7f06a559456ab802a15c78fa76c8b657c44166a0 100644 (file)
@@ -57,7 +57,7 @@ if (length ($ENV{'QUERY_STRING'}) > 0){
                ($name, $value) = split(/=/, $pair);
                $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; # e.g. "%20" => " "
                $value =~ s/[^a-zA-Z0-9]*//g; # a-Z 0-9 will pass
-               $cgiin{$name} = $value; 
+               $cgiin{$name} = $value;
        }
 }
 
@@ -96,8 +96,8 @@ if ( $cgiin{'sort_field'} ~~ [ '1','2','3','4','5','6','7','8','9' ] ) {
 }
 
 # Read and sort the connection tracking table
-# do sorting 
-if ($SORT_FIELD and $SORT_ORDER) { 
+# do sorting
+if ($SORT_FIELD and $SORT_ORDER) {
        # field sorting when sorting arguments are sane
        open(CONNTRACK, "/usr/local/bin/getconntracktable | /usr/local/bin/consort.sh $SORT_FIELD $SORT_ORDER |") or die "Unable to read conntrack table";
 } else {
@@ -247,13 +247,13 @@ if (-e "${General::swroot}/ovpn/settings") {
 
 # Add OpenVPN net for custom OVPNs
 if (-e "${General::swroot}/ovpn/ccd.conf") {
-       open(OVPNSUB, "${General::swroot}/ovpn/ccd.conf");      
+       open(OVPNSUB, "${General::swroot}/ovpn/ccd.conf");
        my @ovpnsub = <OVPNSUB>;
        close(OVPNSUB);
 
        foreach (@ovpnsub) {
                my ($network, $mask) = split '/', (split ',', $_)[2];
-               
+
                $mask = ipv4_cidr2msk($mask) unless &General::validip($mask);
 
                push(@network, $network);
index 1393df65fd619a4da7e2cbcdb42d15b6354d0d05..cc78cbc1bd22163273514951f123b8d001b589a8 100644 (file)
@@ -138,7 +138,7 @@ if ( $cgiparams{'ACTION'} eq 'toggle' )
   {
     $CONNSCHED::config[$cgiparams{'ID'}]{'ACTIVE'} = 'on';
   }
-  
+
   &CONNSCHED::WriteConfig;
 }
 
@@ -194,7 +194,7 @@ if ( ($cgiparams{'ACTION'} eq 'add') || ($cgiparams{'ACTION'} eq 'update') )
 if ( $cgiparams{'ACTION'} eq 'edit' )
 {
   $i = $cgiparams{'ID'};
-  
+
   $selected_hour = substr($CONNSCHED::config[$i]{'TIME'},0,2);
   $selected_minute = substr($CONNSCHED::config[$i]{'TIME'},3,2);
 
@@ -412,7 +412,7 @@ END
 my $col="";
 for my $id ( 0 .. $#CONNSCHED::config )
 {
-  if ( ($cgiparams{'ACTION'} eq 'edit') && ($id == $cgiparams{'ID'}) ) 
+  if ( ($cgiparams{'ACTION'} eq 'edit') && ($id == $cgiparams{'ID'}) )
   {
     print "<tr>";
     $col="bgcolor='${Header::colouryellow}'";
@@ -422,7 +422,7 @@ for my $id ( 0 .. $#CONNSCHED::config )
     print "<tr>";
     $col="bgcolor='$color{'color20'}'";
   }
-  else 
+  else
   {
     print "<tr>";
     $col="bgcolor='$color{'color22'}'";
index f1fbfd23583708948c0c399e759704893735232d..0a0a21d68ce085ef1aaedac8bb0ee802bf6bc267 100644 (file)
@@ -47,7 +47,7 @@ my $warnNTPmessage = '';
 my @nosaved=();
 my %color = ();
 
-#Basic syntax allowed for new Option definition. Not implemented: RECORDS & array of RECORDS 
+#Basic syntax allowed for new Option definition. Not implemented: RECORDS & array of RECORDS
 our $OptionTypes = 'boolean|((un)?signed )?integer (8|16|32)|ip-address|text|string|encapsulate \w+|array of ip-address';
 
 &Header::showhttpheaders();
@@ -153,14 +153,14 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'save'}) {
                    $errormessage = "DHCP on ${itf}: " . $Lang::tr{'invalid end address'};
                    goto ERROR;
                }
-               if (! &General::IpInSubnet ( $dhcpsettings{"START_ADDR_${itf}"}, 
+               if (! &General::IpInSubnet ( $dhcpsettings{"START_ADDR_${itf}"},
                                    $netsettings{"${itf}_NETADDRESS"},
                                    $netsettings{"${itf}_NETMASK"})) {
                    $errormessage = "DHCP on ${itf}: " . $Lang::tr{'invalid start address'};
                    goto ERROR;
                }
            }
-           
+
            if ($dhcpsettings{"END_ADDR_${itf}"}) {
                if (!(&General::validip($dhcpsettings{"END_ADDR_${itf}"}))) {
                    $errormessage = "DHCP on ${itf}: " . $Lang::tr{'invalid end address'};
@@ -170,9 +170,9 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'save'}) {
                    $errormessage = "DHCP on ${itf}: " . $Lang::tr{'invalid start address'};
                    goto ERROR;
                }
-               if (! &General::IpInSubnet ( $dhcpsettings{"END_ADDR_${itf}"}, 
+               if (! &General::IpInSubnet ( $dhcpsettings{"END_ADDR_${itf}"},
                                    $netsettings{"${itf}_NETADDRESS"},
-                                   $netsettings{"${itf}_NETMASK"})) { 
+                                   $netsettings{"${itf}_NETMASK"})) {
                    $errormessage = "DHCP on ${itf}: " . $Lang::tr{'invalid end address'};
                    goto ERROR;
                }
@@ -214,7 +214,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'save'}) {
                        goto ERROR;
                }
                if (! $dhcpsettings{"DNS1_${itf}"}) {
-                       $errormessage = "DHCP on ${itf}: " . $Lang::tr{'cannot specify secondary dns without specifying primary'}; 
+                       $errormessage = "DHCP on ${itf}: " . $Lang::tr{'cannot specify secondary dns without specifying primary'};
                        goto ERROR;
                }
            }
@@ -233,7 +233,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'save'}) {
                if (! $dhcpsettings{"WINS1_${itf}"} ) {
                        $errormessage = "DHCP on ${itf}: " . $Lang::tr{'cannot specify secondary wins without specifying primary'};
                        goto ERROR;
-               }               
+               }
            }
            if ($dhcpsettings{"NEXT_${itf}"}) {
                if (!(&General::validip($dhcpsettings{"NEXT_${itf}"}))) {
@@ -295,14 +295,14 @@ if ($ENV{'QUERY_STRING'} =~ /^FETHER|^FIPADDR/ ) {
     &General::writehash($setting, \%dhcpsettings);
     &sortcurrent2;
     $dhcpsettings{'ACTION'} = 'SORT';                  # create an 'ACTION'
-    map ($dhcpsettings{$_} = '',@nosaved,'KEY1','KEY2');# and reinit vars to empty 
+    map ($dhcpsettings{$_} = '',@nosaved,'KEY1','KEY2');# and reinit vars to empty
 }
 
 #Sorting of allocated leases
 &Header::CheckSortOrder;
 
 
-## Now manipulate the two multi-line list with Settings2. 
+## Now manipulate the two multi-line list with Settings2.
 #  '1' suffix is for ADVANCED OPTIONS
 #  '2' suffix is for FIXED LEASES
 
@@ -319,12 +319,12 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'toggle enable disable'}.'1') {
     open(FILE, ">$filename1") or die 'Unable to open dhcp advanced options file.';
     print FILE @current1;
     close(FILE);
-       
+
     #Write changes to dhcpd.conf.
     &buildconf;
 }
 
-    
+
 
 if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'1' &&
        $dhcpsettings{'SUBMIT'} ne $Lang::tr{'dhcp advopt help'}) {
@@ -334,7 +334,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'1' &&
     if ($dhcpsettings{'ADVOPT_DATA'} eq '') {
        $errormessage=$Lang::tr{'dhcp advopt blank value'};
     }
-    
+
     # Test for a new option definition string (join field name & data)
     if (ExistNewOptionDefinition ($dhcpsettings{'ADVOPT_NAME'} . ' ' . $dhcpsettings{'ADVOPT_DATA'})) {
        #only edit permitted if option definition exists
@@ -352,7 +352,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'1' &&
     }
 
     unless ($errormessage) {
-       
+
        my $scope = '';
        foreach my $itf (@ITFs) {  # buils "RED,GREEN,ORANGE,... based on selection
            $scope .= $dhcpsettings{"ADVOPT_SCOPE_${itf}"} eq 'on' ? "\t$itf" : "\toff" ;
@@ -387,7 +387,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'edit'}.'1') {
        if ($itf ne 'off') # Only is an interface name is read
        {
            $dhcpsettings{"ADVOPT_SCOPE_${itf}"} = 'on';
-       }    
+       }
     }
 }
 
@@ -416,7 +416,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'toggle enable disable'}.'2') {
     open(FILE, ">$filename2") or die 'Unable to open fixed leases file.';
     print FILE @current2;
     close(FILE);
-       
+
     #Write changes to dhcpd.conf.
     &buildconf;
 }
@@ -428,7 +428,7 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'2') {
     if ($dhcpsettings{'FIX_NEXTADDR'}) {
         unless(&General::validip($dhcpsettings{'FIX_NEXTADDR'})) { $errormessage = $Lang::tr{'invalid fixed ip address'}; }
     }
-       
+
     my $key = 0;
     CHECK:foreach my $line (@current2) {
         my @temp = split(/\,/,$line);
@@ -438,13 +438,13 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'2') {
            # Also it may be needed to put duplicate fixed lease in their right subnet definition..
            foreach my $itf (@ITFs) {
                my $scoped = &General::IpInSubnet($dhcpsettings{'FIX_ADDR'},
-                                                 $netsettings{"${itf}_NETADDRESS"}, 
+                                                 $netsettings{"${itf}_NETADDRESS"},
                                                  $netsettings{"${itf}_NETMASK"}) &&
                                                  $dhcpsettings{"ENABLE_${itf}"} eq 'on';
                if ( $scoped &&
                    (lc($dhcpsettings{'FIX_MAC'}) eq lc($temp[0])) &&
                    &General::IpInSubnet($temp[1],
-                                        $netsettings{"${itf}_NETADDRESS"}, 
+                                        $netsettings{"${itf}_NETADDRESS"},
                                         $netsettings{"${itf}_NETMASK"})) {
                    $errormessage = "$Lang::tr{'mac address in use'} $dhcpsettings{'FIX_MAC'}";
                    last CHECK;
@@ -755,10 +755,10 @@ print <<END
 END
 ;
 
-# Put a checkbox for each interface. Checkbox visible disabled if interface is disabled  
+# Put a checkbox for each interface. Checkbox visible disabled if interface is disabled
 foreach my $itf (@ITFs) {
     my $lc_itf=lc($itf);
-    $checked{'ADVOPT_SCOPE_${itf}'}{'on'} = $dhcpsettings{"ADVOPT_SCOPE_${itf}"} ne 'on' ? '' : "checked='checked'";    
+    $checked{'ADVOPT_SCOPE_${itf}'}{'on'} = $dhcpsettings{"ADVOPT_SCOPE_${itf}"} ne 'on' ? '' : "checked='checked'";
     print "$Lang::tr{\"${lc_itf}\"} <input type='checkbox' name='ADVOPT_SCOPE_${itf}' $checked{'ADVOPT_SCOPE_${itf}'}{'on'} ";
     print $dhcpsettings{"ENABLE_${itf}"} eq 'on' ? "/>" : "disabled='disabled' />";
     print "&nbsp; &nbsp;";
@@ -812,7 +812,7 @@ if ($dhcpsettings{'SUBMIT'} eq $Lang::tr{'dhcp advopt help'}) {
     print '<tr><td>wpad</td><td>code 252=text</td></tr>';
     print '<tr><td>wpad</td><td>"http://www.server.fr/path-to/proxy.pac"</td></tr>';
     print '</table>';
+
 }
 
 print <<END
@@ -838,7 +838,7 @@ foreach my $line (@current1) {
        $gdesc = $Lang::tr{'click to disable'};
     } else {
        $gif = 'off.gif';
-       $gdesc = $Lang::tr{'click to enable'}; 
+       $gdesc = $Lang::tr{'click to enable'};
     }
 
     if ($dhcpsettings{'KEY1'} eq $key) {
@@ -846,7 +846,7 @@ foreach my $line (@current1) {
     } elsif ($key % 2) {
        print "<tr bgcolor='$color{'color22'}'>";
     } else {
-       print "<tr bgcolor='$color{'color20'}'>"; 
+       print "<tr bgcolor='$color{'color20'}'>";
     }
 
     print <<END
@@ -867,8 +867,8 @@ END
     } else {
        $global = $Lang::tr{'dhcp advopt scope global'};
     }
-    
-    
+
+
     # Print each checked interface
     for (my $key=0; $key<@ITFs; $key++) {
        my $itf = $temp[3+$key];
@@ -1024,18 +1024,18 @@ my %ipoutside = ();
 foreach my $line (@current2) {
     my @temp = split(/\,/,$line);
     $macdupl{$temp[0]} += 1;
-    if ($macdupl{$temp[0]} > 1) { 
+    if ($macdupl{$temp[0]} > 1) {
        $ipdup = 1;     # Flag up duplicates for use later
     }
     $ipinuse{$temp[1]} += 1;
-    if ($ipinuse{$temp[1]} > 1) { 
+    if ($ipinuse{$temp[1]} > 1) {
        $ipdup = 1;     # Flag up duplicates for use later
     }
     # Mark IP addresses outwith known subnets
     $ipoutside{$temp[1]} = 1;
     foreach my $itf (@ITFs) {
         if ( &General::IpInSubnet($temp[1],
-                $netsettings{"${itf}_NETADDRESS"}, 
+                $netsettings{"${itf}_NETADDRESS"},
                 $netsettings{"${itf}_NETMASK"})) {
             $ipoutside{$temp[1]} = 0;
         }
@@ -1055,7 +1055,7 @@ foreach my $line (@current2) {
        $gdesc = $Lang::tr{'click to disable'};
     } else {
        $gif = 'off.gif';
-       $gdesc = $Lang::tr{'click to enable'}; 
+       $gdesc = $Lang::tr{'click to enable'};
     }
 
     # Skip all entries that do not match the search query
@@ -1081,15 +1081,15 @@ foreach my $line (@current2) {
     my $TAG2 = '';
     my $TAG3 = '';
     my $TAG4 = '';
-    if ($ipinuse{$temp[1]} > 1) { 
+    if ($ipinuse{$temp[1]} > 1) {
        $TAG0 = '<b>';
        $TAG1 = '</b>';
     }
-    if ($macdupl{$temp[0]} > 1) { 
+    if ($macdupl{$temp[0]} > 1) {
        $TAG2 = '<b>';
        $TAG3 = '</b>';
     }
-    if ($ipoutside{$temp[1]} > 0) { 
+    if ($ipoutside{$temp[1]} > 0) {
        $TAG4 = "bgcolor='orange'" if ($dhcpsettings{'KEY2'} ne $key);
     }
 
@@ -1230,7 +1230,7 @@ sub sortcurrent2
        # use combination of ether & IP as key to allow duplicates in either but not both
        $entries{$record->{FETHER} . $record->{FIPADDR}} = $record; # add this to a hash of hashes
     }
-    
+
     open(FILE, ">$filename2") or die 'Unable to open fixed lease file.';
     foreach my $entry ( sort fixedleasesort keys %entries) {
        print FILE "$entries{$entry}->{FETHER},$entries{$entry}->{FIPADDR},$entries{$entry}->{DATA}\n";
@@ -1243,7 +1243,7 @@ sub sortcurrent2
     close (FILE);
     undef (%entries);  #This array is reused latter. Clear it.
 }
-                                                   
+
 # Build the configuration file mixing  settings, fixed leases and advanced options
 sub buildconf {
     open(FILE, ">/${General::swroot}/dhcp/dhcpd.conf") or die "Unable to write dhcpd.conf file";
@@ -1263,7 +1263,7 @@ sub buildconf {
     } else {
         print FILE "ddns-update-style none;\n";
     }
-    
+
     # Write first new option definition
     foreach my $line (@current1) {
        chomp($line);   # remove newline
@@ -1276,7 +1276,7 @@ sub buildconf {
     foreach my $line (@current1) {
        chomp($line);   # remove newline
        my @temp = split(/\t/,$line);
-       
+
        if ($temp[0] eq 'on' && !ExistNewOptionDefinition ($temp[1] . ' ' . $temp[2])){ # active & !definition
            my $global=1;
            for (my $key=0; $key<@ITFs; $key++) {
@@ -1289,7 +1289,7 @@ sub buildconf {
            if ($global) {
                print FILE "option $temp[1] $temp[2];\n";
            }
-       }# on    
+       }# on
     }# foreach line
     print FILE "\n";
 
@@ -1329,7 +1329,7 @@ sub buildconf {
            foreach my $line (@current1) {
                chomp($line);   # remove newline
                my @temp = split(/\t/,$line);           # Use TAB separator !
-       
+
                if ($temp[0] eq 'on'){
                    for (my $key=0; $key<@ITFs; $key++) {
                        if ($itf eq $temp[3+$key]) # Only is an interface name is read
@@ -1337,7 +1337,7 @@ sub buildconf {
                            print FILE "\toption $temp[1] $temp[2];\n";
                        }
                    }
-               }# on    
+               }# on
            }# foreach line
            print FILE "} #$itf\n\n";
 
index e2843a81f9918e242c04bd4a8fb9995fb111b714..4af5ed200510c1296120a7ed713d982da18d8be2 100644 (file)
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
 #                                                                             #
 ###############################################################################
+
 use strict;
 
 # enable only the following on debugging purpose
index 154efd7b28678d1b1d10800a35997d300948072c..36c0efc2ef4248ad17d119abc557ca18cb40ca40 100644 (file)
@@ -100,8 +100,8 @@ END
 ;
        &General::system("/usr/local/bin/extrahdctrl", "mount", "$extrahdsettings{'PATH'}");
        }
-} 
-elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'}) 
+}
+elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'})
 {
        if ( &General::system("/usr/local/bin/extrahdctrl", "umount", "$extrahdsettings{'PATH'}")) {
                open( FILE, "< $devicefile" ) or die "Unable to read $devicefile";
index 1341f52095a94a4f984caacc01f5ff8a11dee20b..681d4277004d60a9b32a596467df150e6b1e1589 100644 (file)
@@ -100,7 +100,7 @@ my @protocols;
 &General::readhash("${General::swroot}/firewall/settings", \%fwdfwsettings);
 &General::readhash("${General::swroot}/main/settings", \%mainsettings);
 &General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color);
-&General::readhash($fwoptions, \%optionsfw); 
+&General::readhash($fwoptions, \%optionsfw);
 &General::readhash($ifacesettings, \%ifaces);
 &General::readhash("$configovpn", \%ovpnsettings);
 &General::readhash("$configipsecrw", \%ipsecsettings);
@@ -554,7 +554,7 @@ sub checksource
                                if (&General::validport($_)){
                                        push (@values,$_);
                                }else{
-                                       
+
                                }
                        }
                }
@@ -836,7 +836,7 @@ sub checkrule
                                                        if (&General::validport($_)){
                                                                push (@values,$_);
                                                        }else{
-                                                               
+
                                                        }
                                                }
                                        }
@@ -974,16 +974,16 @@ sub checkvpn
        # A Test if manual ip is part of dynamic openvpn subnet is made in getcolor
        # because if one creates a custom host with the ip, we need to check the color there!
        # It does not make sense to check this here
-       
+
        # Test if manual IP is part of an OpenVPN N2N subnet does also not make sense here
        # Is also checked in getcolor
-       
+
        # Test if manual ip is part of an IPsec Network is also checked in getcolor
        return 1;
 }
 sub checkvpncolor
 {
-       
+
 }
 sub deleterule
 {
@@ -1247,7 +1247,7 @@ END
                print"<tr><td valign='top'><input type='radio' name='$grp' id='ipsec_net_$srctgt' value='ipsec_net_$srctgt' $checked{$grp}{'ipsec_net_'.$srctgt}></td><td >$Lang::tr{'fwhost ipsec net'}</td><td align='right'><select name='ipsec_net_$srctgt' style='width:200px;'><select></td></tr>";
        }
        if ($show eq '1'){$show='';print"</select></td></tr>";}
-       
+
        print"</table>";
        print"</td></tr></table><br>";
 }
@@ -1585,10 +1585,10 @@ sub newrule
                                $fwdfwsettings{'RULE_ACTION'}                   = $hash{$key}[0];
                                $fwdfwsettings{'chain'}                                 = $hash{$key}[1];
                                $fwdfwsettings{'ACTIVE'}                                = $hash{$key}[2];
-                               $fwdfwsettings{'grp1'}                                  = $hash{$key}[3];   
-                               $fwdfwsettings{$fwdfwsettings{'grp1'}}  = $hash{$key}[4];   
-                               $fwdfwsettings{'grp2'}                                  = $hash{$key}[5];   
-                               $fwdfwsettings{$fwdfwsettings{'grp2'}}  = $hash{$key}[6];   
+                               $fwdfwsettings{'grp1'}                                  = $hash{$key}[3];
+                               $fwdfwsettings{$fwdfwsettings{'grp1'}}  = $hash{$key}[4];
+                               $fwdfwsettings{'grp2'}                                  = $hash{$key}[5];
+                               $fwdfwsettings{$fwdfwsettings{'grp2'}}  = $hash{$key}[6];
                                $fwdfwsettings{'USE_SRC_PORT'}                  = $hash{$key}[7];
                                $fwdfwsettings{'PROT'}                                  = $hash{$key}[8];
                            $fwdfwsettings{'ICMP_TYPES'}                        = $hash{$key}[9];
@@ -1695,7 +1695,7 @@ sub newrule
                        if ( &General::IpInSubnet($sip,$netsettings{'ORANGE_ADDRESS'},$netsettings{'ORANGE_NETMASK'})){
                                $fwdfwsettings{'oldorange'} ='on';
                        }
-               }       
+               }
        }
        # Split manual source and target address and delete the subnet
        my ($sip,$scidr) = split("/",$fwdfwsettings{$fwdfwsettings{'grp1'}});
@@ -1811,7 +1811,7 @@ END
                #---TARGET------------------------------------------------------
                &Header::openbox('100%', 'left', $Lang::tr{'fwdfw target'});
                print<<END;
-               <table width='100%' border='0'> 
+               <table width='100%' border='0'>
                <tr><td width='1%'><input type='radio' name='grp2' value='tgt_addr'  checked></td><td width='60%' nowrap='nowrap'>$Lang::tr{'fwdfw targetip'}<input type='TEXT' name='tgt_addr' value='$fwdfwsettings{'tgt_addr'}' size='16' maxlength='18'><td width='1%'><input type='radio' name='grp2' id='ipfire' value='ipfire'  $checked{'grp2'}{'ipfire'}></td><td><b>Firewall</b></td>
 END
                print"<td align='right'><select name='ipfire' style='width:200px;'>";
@@ -2031,7 +2031,7 @@ END
                print"<tr><td width='12%'>$Lang::tr{'remark'}:</td><td width='88%' align='left'><input type='text' name='ruleremark' maxlength='255' value='$fwdfwsettings{'ruleremark'}' style='width:99%;'></td></tr>";
                if($fwdfwsettings{'updatefwrule'} eq 'on' || $fwdfwsettings{'copyfwrule'} eq 'on'){
                        print "<tr><td width='12%'>$Lang::tr{'fwdfw rulepos'}:</td><td><select name='rulepos' >";
-                       for (my $count =1; $count <= $sum; $count++){ 
+                       for (my $count =1; $count <= $sum; $count++){
                                print"<option value='$count' ";
                                print"selected='selected'" if($fwdfwsettings{'oldrulenumber'} eq $count);
                                print">$count</option>";
@@ -2110,7 +2110,7 @@ END
                                print "<option $selected{'TIME_FROM'}{$time}>$i:$j</option>\n";
                        }
                }
-               print<<END;     
+               print<<END;
                                                                </select> &dash;
                                                                <select name='TIME_TO'>
 END
@@ -2590,7 +2590,7 @@ END
                                $color="$color{'color14'}";
                                $coloryellow='';
                        }elsif($coloryellow eq ''){
-                               if ($count % 2){ 
+                               if ($count % 2){
                                        $color="$color{'color22'}";
                                }
                                else{
index c66e3002a3097818852e11aeabf92e739824f304..baf745a0a2735afcc5197f9d5636a873c529cf30 100644 (file)
@@ -145,7 +145,7 @@ if ($fwhostsettings{'ACTION'} eq 'updatenet' )
                        $fwhostsettings{'netremark'}    = $customnetwork{$key}[3];
                        $fwhostsettings{'count'}                = $customnetwork{$key}[4];
                        delete $customnetwork{$key};
-                       
+
                }
        }
        &General::writehasharray("$confignet", \%customnetwork);
@@ -284,7 +284,7 @@ if ($fwhostsettings{'ACTION'} eq 'savenet' )
                #convert ip if leading '0' exists
                $fwhostsettings{'IP'} = &Network::ip_remove_zero($fwhostsettings{'IP'});
 
-               #check valid ip 
+               #check valid ip
                if (!&General::validipandmask($fwhostsettings{'IP'}."/".$fwhostsettings{'SUBNET'}))
                {
                        $errormessage=$errormessage.$Lang::tr{'fwhost err addr'};
@@ -448,7 +448,7 @@ if ($fwhostsettings{'ACTION'} eq 'savehost')
                        }
                }
                #only check plausi when no error till now
-               if (!$errormessage){    
+               if (!$errormessage){
                        &plausicheck("edithost");
                }
                if($fwhostsettings{'actualize'} eq 'on' && $fwhostsettings{'newhost'} ne 'on' && $errormessage){
@@ -465,7 +465,7 @@ if ($fwhostsettings{'ACTION'} eq 'savehost')
                        $customhost{$key}[3] = $fwhostsettings{'orgremark'};
                        &General::writehasharray("$confighost", \%customhost);
                        undef %customhost;
-               } 
+               }
                if (!$errormessage){
                        #get count if host was edited
                        if($fwhostsettings{'actualize'} eq 'on'){
@@ -560,7 +560,7 @@ if ($fwhostsettings{'ACTION'} eq 'savegrp')
                #check standard networks
                if ($fwhostsettings{'grp2'} eq 'std_net'){
                        @target=$fwhostsettings{'DEFAULT_SRC_ADR'};
-                       $type='Standard Network';       
+                       $type='Standard Network';
                }
                #check custom networks
                if ($fwhostsettings{'grp2'} eq 'cust_net' && $fwhostsettings{'CUST_SRC_NET'} ne ''){
@@ -626,7 +626,7 @@ if ($fwhostsettings{'ACTION'} eq 'savegrp')
                        $fwhostsettings{'remark'}='';
                }
                #check if host/net exists in grp
-               
+
                my $test="$grp,$fwhostsettings{'oldremark'},@target,$type";
                foreach my $key (keys %customgrp) {
                        my $test1="$customgrp{$key}[0],$customgrp{$key}[1],$customgrp{$key}[2],$customgrp{$key}[3]";
@@ -636,7 +636,7 @@ if ($fwhostsettings{'ACTION'} eq 'savegrp')
                        }
                }
        }
-       
+
        if (!$errormessage){
                #on first save, we have an empty @target, so fill it with nothing
                my $targetvalues=@target;
@@ -1168,7 +1168,7 @@ if ($fwhostsettings{'ACTION'} eq 'changegrpremark')
                                {
                                        $customgrp{$key}[1]='';
                                        $customgrp{$key}[1]=$fwhostsettings{'newrem'};
-                               }       
+                               }
                        }
                        &General::writehasharray("$configgrp", \%customgrp);
                        $fwhostsettings{'update'}='on';
@@ -1218,7 +1218,7 @@ if ($fwhostsettings{'ACTION'} eq 'changesrvgrpremark')
                                {
                                        $customservicegrp{$key}[1]='';
                                        $customservicegrp{$key}[1]=$fwhostsettings{'newsrvrem'};
-                               }       
+                               }
                        }
                        &General::writehasharray("$configsrvgrp", \%customservicegrp);
                        $fwhostsettings{'updatesrvgrp'}='on';
@@ -1323,7 +1323,7 @@ sub showmenu {
        <tr><td colspan='6'></td></tr></table>
 END
        &Header::closebox();
-       
+
 }
 # Add
 sub addnet
@@ -1367,11 +1367,11 @@ END
 
        if ($fwhostsettings{'ACTION'} eq 'edithost' || $fwhostsettings{'error'} eq 'on')
        {
-               
+
                print " <td colspan='4' align='right'><input type='submit' value='$Lang::tr{'update'}' style='min-width:100px;'/><input type='hidden' name='ACTION' value='updatehost'><input type='hidden' name='orgremark' value='$fwhostsettings{'orgremark'}' ><input type='hidden' name='orgname' value='$fwhostsettings{'orgname'}' ><input type='hidden' name='update' value='on'><input type='hidden' name='newhost' value='$fwhostsettings{'newhost'}'></form>";
        }else{
                print " <td colspan='4' align='right'><input type='submit' name='savehost' value='$Lang::tr{'save'}' style='min-width:100px;' /><input type='hidden' name='ACTION' value='savehost' /><input type='hidden' name='newhost' value='on'>";
-       }       
+       }
        print " </form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;' ><input type='hidden' name='ACTION' value='resethost'></form></td></tr></table>";
        &Header::closebox();
 }
@@ -1397,7 +1397,7 @@ sub addgrp
        $fwhostsettings{'oldgrpname'}=$fwhostsettings{'grp_name'};
        my $grp=$fwhostsettings{'grp_name'};
        my $rem=$fwhostsettings{'remark'};
-               if ($fwhostsettings{'update'} eq ''){   
+               if ($fwhostsettings{'update'} eq ''){
                        print<<END;
                <table width='100%' border='0'>
                        <tr>
@@ -1869,9 +1869,9 @@ sub viewtablenet
                &General::readhasharray("$fwconfiginp", \%fwinp);
                &General::readhasharray("$fwconfigout", \%fwout);
 
-               if (!keys %customnetwork) 
-               { 
-                       print "<center><b>$Lang::tr{'fwhost empty'}</b>"; 
+               if (!keys %customnetwork)
+               {
+                       print "<center><b>$Lang::tr{'fwhost empty'}</b>";
                }else{
                        print<<END;
                        <table width='100%' cellspacing='0' class='tbl'>
@@ -1885,7 +1885,7 @@ END
                                print" <tr>";
                                $col="bgcolor='${Header::colouryellow}'";
                        }elsif ($count % 2)
-                       { 
+                       {
                                $col="bgcolor='$color{'color20'}'";
                                print" <tr>";
                        }else
@@ -1915,7 +1915,7 @@ END
                }
                print"</table>";
                &Header::closebox();
-       }       
+       }
 
 }
 sub getcolor
@@ -2015,9 +2015,9 @@ sub viewtablehost
                &General::readhasharray("$fwconfiginp", \%fwinp);
                &General::readhasharray("$fwconfigout", \%fwout);
                &General::readhasharray("$configgrp", \%customgrp);
-               if (!keys %customhost) 
-               { 
-                       print "<center><b>$Lang::tr{'fwhost empty'}</b>"; 
+               if (!keys %customhost)
+               {
+                       print "<center><b>$Lang::tr{'fwhost empty'}</b>";
                }else{
                print<<END;
                <table width='100%' cellspacing='0' class='tbl'>
@@ -2085,7 +2085,7 @@ sub viewtablegrp
        my $delflag;
        my @counter;
        my %hash;
-       if (!keys %customgrp) 
+       if (!keys %customgrp)
        {
                print "<center><b>$Lang::tr{'fwhost err emptytable'}</b>";
        }else{
@@ -2136,7 +2136,7 @@ sub viewtablegrp
                                print"<tr>";
                                $col="bgcolor='$color{'color22'}'";
                        }
-                       my $ip=&getipforgroup($customgrp{$key}[2],$customgrp{$key}[3]); 
+                       my $ip=&getipforgroup($customgrp{$key}[2],$customgrp{$key}[3]);
                        if ($ip eq ''){
                                print"<tr>";
                                $col="bgcolor='${Header::colouryellow}'";
@@ -2548,7 +2548,7 @@ sub checkname
                }
        }
        return 1;
-       
+
 }
 sub checkgroup
 {
@@ -2574,7 +2574,7 @@ sub checkservice
 }
 sub checkip
 {
-       
+
        my %hash=%{(shift)};
        my $a=shift;
        foreach my $key (keys %hash) {
@@ -2603,7 +2603,7 @@ sub checkservicegroup
                foreach my $key (keys %customservicegrp) {
                        if( $customservicegrp{$key}[0] eq $fwhostsettings{'SRVGRP_NAME'} ){
                                $errormessage.=$Lang::tr{'fwhost err grpexist'}."<br>";
-                       
+
                        }
                }
        }
@@ -2667,7 +2667,7 @@ sub get_name
        foreach my $network (sort keys %defaultNetworks)
        {
                return "$network" if ($val eq $defaultNetworks{$network}{'NAME'});
-       }       
+       }
 }
 sub gethostcount
 {
@@ -2827,7 +2827,7 @@ sub deletefromgrp
                }
        }
        &General::writehasharray("$config",\%hash);
-       
+
 }
 sub plausicheck
 {
@@ -2893,13 +2893,13 @@ sub plausicheck
                $errormessage=$errormessage."<br>".$Lang::tr{'fwhost err netexist'};
                $fwhostsettings{'HOSTNAME'} = $fwhostsettings{'orgname'};
                if ($fwhostsettings{'update'} eq 'on'){$fwhostsettings{'ACTION'}=$edit;}
-       }       
-       #check if network ip already exists             
+       }
+       #check if network ip already exists
        if (!&checkip(\%customnetwork,1))
        {
                $errormessage=$errormessage."<br>".$Lang::tr{'fwhost err net'};
                if ($fwhostsettings{'update'} eq 'on'){$fwhostsettings{'ACTION'}=$edit;}
-       }       
+       }
        #check if host with this name already exists
        &General::readhasharray("$confighost", \%customhost);
        if (!&checkname(\%customhost))
@@ -2920,7 +2920,7 @@ sub getipforgroup
        my $name=$_[0],
        my $type=$_[1];
        my $value;
-       
+
        #get address from IPSEC NETWORK
        if ($type eq 'IpSec Network'){
                foreach my $key (keys %ipsecconf) {
@@ -2946,7 +2946,7 @@ sub getipforgroup
                }
                &deletefromgrp($name,$configgrp);
        }
-       
+
        #get address from IPSEC HOST
        if ($type eq 'IpSec Host'){
                foreach my $key (keys %ipsecconf) {
@@ -2956,7 +2956,7 @@ sub getipforgroup
                }
                &deletefromgrp($name,$configgrp);
        }
-               
+
        #get address from ovpn ccd Net-2-Net
        if ($type eq 'OpenVPN N-2-N'){
                foreach my $key (keys %ccdhost) {
@@ -2968,7 +2968,7 @@ sub getipforgroup
                }
                &deletefromgrp($name,$configgrp);
        }
-       
+
        #get address from ovpn ccd static host
        if ($type eq 'OpenVPN static host'){
                foreach my $key (keys %ccdhost) {
@@ -2980,7 +2980,7 @@ sub getipforgroup
                }
                &deletefromgrp($name,$configgrp);
        }
-       
+
        #get address from  ovpn ccd static net
        if ($type eq 'OpenVPN static network'){
                foreach my $key (keys %ccdnet) {
@@ -2991,7 +2991,7 @@ sub getipforgroup
                        }
                }
        }
-       
+
        #check custom addresses
        if ($type eq 'Custom Host'){
                foreach my $key (keys %customhost) {
@@ -3001,7 +3001,7 @@ sub getipforgroup
                        }
                }
        }
-       
+
        ##check custom networks
        if ($type eq 'Custom Network'){
                foreach my $key (keys %customnetwork) {
@@ -3010,7 +3010,7 @@ sub getipforgroup
                        }
                }
        }
-       
+
        #check standard networks
        if ($type eq 'Standard Network'){
                if ($name =~ /OpenVPN/i){
@@ -3060,7 +3060,7 @@ sub decrease
                                }
                        }
                }
-               
+
                if (($customgrp{$key}[0] eq $grp) && ($customgrp{$key}[3] eq 'Custom Host')){
                        foreach my $key2 (sort keys %customhost){
                                if ($customhost{$key2}[0] eq $customgrp{$key}[2]){
@@ -3068,7 +3068,7 @@ sub decrease
                                        last;
                                }
                        }
-                               
+
                }
        }
        &General::writehasharray("$confignet", \%customnetwork);
@@ -3079,7 +3079,7 @@ sub decreaseservice
        my $grp=$_[0];
        &General::readhasharray("$configsrv", \%customservice);
        &General::readhasharray("$configsrvgrp", \%customservicegrp);
-       
+
        foreach my $key (sort keys %customservicegrp){
                if ($customservicegrp{$key}[0] eq $grp ){
                        foreach my $key2 (sort keys %customservice){
@@ -3090,7 +3090,7 @@ sub decreaseservice
                }
        }
        &General::writehasharray("$configsrv", \%customservice);
-       
+
 }
 sub changenameinfw
 {
@@ -3130,7 +3130,7 @@ sub changenameinfw
 }
 sub checkports
 {
-       
+
        my %hash=%{(shift)};
        #check empty fields
        if ($fwhostsettings{'SRV_NAME'} eq '' ){
@@ -3145,7 +3145,7 @@ sub checkports
        }
        #change dashes with :
        $fwhostsettings{'SRV_PORT'}=~ tr/-/:/;
-               
+
        if ($fwhostsettings{'SRV_PORT'} eq "*") {
                $fwhostsettings{'SRV_PORT'} = "1:65535";
        }
index 26bcf09051e3dda0af07593346e0f3f71f7a48ac..26e026bba9b9b91a24e179741ea21f11ea02f6d4 100644 (file)
@@ -52,8 +52,8 @@ my $range = lc $query{'range'}; # lower case
 unless(($origin =~ /^\w+?\.cgi$/) && ($graph =~ /^[\w\-.,; ]+?$/) && ($range ~~ @Graphs::time_ranges)) {
        # Send HTTP headers
        _start_svg_output();
-       
-       _print_error("URL parameters missing or malformed.");   
+
+       _print_error("URL parameters missing or malformed.");
        exit;
 }
 
@@ -62,13 +62,13 @@ unless(($origin =~ /^\w+?\.cgi$/) && ($graph =~ /^[\w\-.,; ]+?$/) && ($range ~~
 unless(($origin ~~ @supported_origins) || ($origin eq "getrrdimage.cgi")) {
        # Rewrite to old URL format: /[graph origin cgi]?[graph name]?[time range]
        my $location = "https://$ENV{'SERVER_NAME'}:$ENV{'SERVER_PORT'}/cgi-bin/${origin}?${graph}?${range}";
-       
+
        # Send HTTP redirect
        print "Status: 302 Found\n";
        print "Location: $location\n";
        print "Content-type: text/html; charset=UTF-8\n";
        print "\n"; # End of HTTP headers
-       
+
        print "Unsupported origin, request redirected to '$location'";
        exit;
 }
index 140fd2178b2c4d5ee5135156748b50ab3f0642b5..029b048e8c3280797beee969d98dd95603cc989d 100644 (file)
@@ -57,7 +57,7 @@ print <<END;
        $Lang::tr{'gpl please read carefully the general public license and accept it below'}.
        <br /><br />
 END
-;      
+;
 if ( -e "/usr/share/doc/licenses/GPLv3" ) {
        print '<textarea rows=\'25\' cols=\'75\' readonly=\'readonly\'>';
 
index a99d1364acd64b79c164e4482528d45162aebb44..c06af91e72a6b8a50eb33a8a423983d6bd513191 100644 (file)
@@ -54,7 +54,7 @@ $settings{'HOST'} = '';
 $settings{'DOM'} = '';
 $settings{'PTR'} = '';
 my @nosaved=('EN','IP','HOST','DOM','PTR');    # List here ALL setting2 fields. Mandatory
-    
+
 $settings{'ACTION'} = '';              # add/edit/remove
 $settings{'KEY1'} = '';                        # point record for ACTION
 
@@ -101,14 +101,14 @@ if ($settings{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
     $temp[0] = $temp[0] ne '' ? '' : 'on';             # Toggle the field
     @current[$settings{'KEY1'}] = join (',',@temp)."\n";
     $settings{'KEY1'} = '';                            # End edit mode
-    
+
     &General::log($Lang::tr{'hosts config changed'});
 
     #Save current
     open(FILE, ">$datafile") or die 'hosts datafile error';
     print FILE @current;
     close(FILE);
-       
+
     # Rebuild configuration file
     &BuildConfiguration;
 }
@@ -140,7 +140,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
         # Write changes to config file.
         &SortDataFile;                         # sort newly added/modified entry
         &BuildConfiguration;                   # then re-build new host
-       
+
        #map ($settings{$_}='' ,@nosaved);      # Clear fields
     }
 }
@@ -162,7 +162,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'edit'}) {
 }
 
 if ($settings{'ACTION'} eq $Lang::tr{'remove'}) {
-    splice (@current,$settings{'KEY1'},1);             # Delete line 
+    splice (@current,$settings{'KEY1'},1);             # Delete line
     open(FILE, ">$datafile") or die 'hosts datafile error';
     print FILE @current;
     close(FILE);
@@ -331,7 +331,7 @@ foreach my $line (@current) {
        $gdesc = $Lang::tr{'click to disable'};
     } else {
        $gif = 'off.gif';
-       $gdesc = $Lang::tr{'click to enable'}; 
+       $gdesc = $Lang::tr{'click to enable'};
     }
 
    if ($temp[4] eq '' || $temp[4] eq 'on') {
@@ -418,7 +418,7 @@ END
 sub SortDataFile
 {
     our %entries = ();
-    
+
     # Sort pair of record received in $a $b special vars.
     # When IP is specified use numeric sort else alpha.
     # If sortname ends with 'Rev', do reverse sort.
@@ -462,13 +462,13 @@ sub SortDataFile
        # Build a pair 'Field Name',value for each of the data dataline.
        # Each SORTABLE field must have is pair.
        # Other data fields (non sortable) can be grouped in one
-       
+
        my @record = ('KEY',$key++,'EN',$temp[0],'IP',$temp[1],'HOST',$temp[2],'DOM',$temp[3],'PTR',$temp[4]);
        my $record = {};                                # create a reference to empty hash
        %{$record} = @record;                           # populate that hash with @record
        $entries{$record->{KEY}} = $record;             # add this to a hash of hashes
     }
-    
+
     open(FILE, ">$datafile") or die 'hosts datafile error';
 
     # Each field value is printed , with the newline ! Don't forget separator and order of them.
index 2b7ccdb0f82de939ae265dec9b93cdf03f7e916f..18c26942e064fc0d4a3aa55e34bee200be02229c 100644 (file)
@@ -113,7 +113,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'dial profile'})
        chmod 0600, "${General::swroot}/ppp/secrets";
        close FILE;
 
-       &General::log("$Lang::tr{'profile made current'} $tempcgiparams{'PROFILENAME'}"); 
+       &General::log("$Lang::tr{'profile made current'} $tempcgiparams{'PROFILENAME'}");
        $cgiparams{'ACTION'} = "$Lang::tr{'dial'}";
 }
 
@@ -138,7 +138,7 @@ for ($c = 1; $c <= $maxprofiles; $c++)
 }
 my %selected;
 for ($c = 1; $c <= $maxprofiles; $c++) {
-       $selected{'PROFILE'}{$c} = ''; 
+       $selected{'PROFILE'}{$c} = '';
 }
 $selected{'PROFILE'}{$pppsettings{'PROFILE'}} = "selected='selected'";
 my $dialButtonDisabled = "disabled='disabled'";
@@ -572,7 +572,7 @@ foreach my $line (@df) {
                        # and root size should not vary during time
                        $warnmessage .= "<li>$Lang::tr{'filesystem full'}: $temp[0] <b>$Lang::tr{'free'}=$1M</b> !</li>";
                }
-               
+
        } else {
                # $line =~ m/^.* (\d+)m.*$/;
                $line =~ m/^.* (\d+)\%.*$/;
index f900562d9ee31b387e63e435bdca686be2b08e19..a27d6a9207914f35bc4efcc939c8b91797bc13ad 100644 (file)
@@ -100,7 +100,7 @@ END
                        }
 
                        $chainname = $chainstring[1];
-                       $chains{$chainname."start"} = $lines; 
+                       $chains{$chainname."start"} = $lines;
                }
 
                $lines++;
@@ -222,11 +222,11 @@ END
                        }
 
                        $chainname = $chainstring[1];
-                       $chainsman{$chainname."start"} = $manlines; 
+                       $chainsman{$chainname."start"} = $manlines;
                }
 
                $manlines++;
-          
+
        }
        $chainsman{$chainname."end"} = $manlines-1;
        close (FILE);
@@ -349,11 +349,11 @@ END
                        }
 
                        $chainname = $chainstring[1];
-                       $chainsnat{$chainname."start"} = $natlines; 
+                       $chainsnat{$chainname."start"} = $natlines;
                }
 
                $natlines++;
-          
+
        }
        $chainsnat{$chainname."end"} = $natlines-1;
        close (FILE);
index 07fdf8a880d0119b6ce0eaaaa8221d73a82c1222..dcc812e4793d17eee8bc40129a1d8f158d3aff3f 100644 (file)
@@ -39,7 +39,7 @@ my $hintcolour='#FFFFCC';
 
 my $commandline='';
 
-my %monthidx = (qw(Jan 0 Feb 1 Mar 2 Apr 3 May 4 Jun 5 Jul 6 Aug 7 Sep 8 Oct 9 Nov 10 Dec 11)); 
+my %monthidx = (qw(Jan 0 Feb 1 Mar 2 Apr 3 May 4 Jun 5 Jul 6 Aug 7 Sep 8 Oct 9 Nov 10 Dec 11));
 
 my @longmonths = ( $Lang::tr{'january'}, $Lang::tr{'february'}, $Lang::tr{'march'},
        $Lang::tr{'april'}, $Lang::tr{'may'}, $Lang::tr{'june'}, $Lang::tr{'july'},
@@ -350,7 +350,7 @@ print <<END
        <select name='DAY_BEGIN'>
 END
 ;
-for ($day_begin = 1; $day_begin <= 31; $day_begin++) 
+for ($day_begin = 1; $day_begin <= 31; $day_begin++)
 {
        print "\t<option ";
        if ($day_begin == $reportsettings{'DAY_BEGIN'}) {
@@ -364,7 +364,7 @@ print <<END
        <select name='YEAR_BEGIN'>
 END
 ;
-for ($year_begin = $year-2; $year_begin <= $year+1; $year_begin++) 
+for ($year_begin = $year-2; $year_begin <= $year+1; $year_begin++)
 {
        print "\t<option ";
        if ($year_begin == $reportsettings{'YEAR_BEGIN'}) {
@@ -393,7 +393,7 @@ print <<END
        <select name='DAY_END'>
 END
 ;
-for ($day_end = 1; $day_end <= 31; $day_end++) 
+for ($day_end = 1; $day_end <= 31; $day_end++)
 {
        print "\t<option ";
        if ($day_end == $reportsettings{'DAY_END'}) {
@@ -407,7 +407,7 @@ print <<END
        <select name='YEAR_END'>
 END
 ;
-for ($year_end = $year-2; $year_end <= $year+1; $year_end++) 
+for ($year_end = $year-2; $year_end <= $year+1; $year_end++)
 {
        print "\t<option ";
        if ($year_end == $reportsettings{'YEAR_END'}) {
index 73596d8cdc072d4c60dccecf8d9e54084425d284..467d06008fc4cd49bffae3523a477b8bb3637ffa 100644 (file)
@@ -122,7 +122,7 @@ my $date = $cgiparams{'DAY'} == 0 ? '' :  $cgiparams{'DAY'} <= 9 ? "0$cgiparams{
 
 {
        my $xday;
-       
+
        # Calculate time. If future date, calculate for past year !!!
        if (( $cgiparams{'MONTH'} eq $now[4]) && ($cgiparams{'DAY'} > $now[3]) ||
        ( $cgiparams{'MONTH'}  > $now[4] ) ) {
@@ -216,7 +216,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'export'})
                $day =~ tr / /0/;
                my $time = $cgiparams{'DAY'} ? "$2" : "$day/$2" ;
                print "$time $3\r\n";
-               
+
        }
        exit 0;
 }
@@ -248,7 +248,7 @@ for (my $month = 0; $month < 12; $month++)
 {
        print "\t<option ";
        if ($month == $cgiparams{'MONTH'}) {
-               print "selected='selected' "; 
+               print "selected='selected' ";
        }
        print "value='$month'>$longmonths[$month]</option>\n";
 }
@@ -261,11 +261,11 @@ print <<END
 END
 ;
 print "<option value='0'>$Lang::tr{'all'}</option>\n";
-for (my $day = 1; $day <= 31; $day++) 
+for (my $day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
-               print "selected='selected' "; 
+               print "selected='selected' ";
        }
        print "value='$day'>$day</option>\n";
 }
@@ -298,7 +298,7 @@ if ($start == 0) {
        $prev = $start - ${Header::viewsize};
        $prev = 0 if ( $prev < 0);
 }
-                                       
+
 my $next;
 if ($start == $lastPageIndex) {
        $next = -1;
@@ -339,7 +339,7 @@ foreach $_ (@log)
        my $day =  $1;
        $day =~ tr / /0/;
        my $time = $cgiparams{'DAY'} ? "$2" : "$day/$2" ;
-       my $chain = $3; 
+       my $chain = $3;
 
        my ($iface, $srcaddr, $dstaddr, $macaddr, $proto, $srcport, $dstport);
        if ($packet =~ /PHYSIN=(\w+)/) { $iface=$1; } elsif ($packet =~ /IN=(\w+)/) { $iface = $1; }
@@ -364,7 +364,7 @@ foreach $_ (@log)
 
        my $servi = uc(getservbyport($srcport, lc($proto)));
        if ($servi ne '' && $srcport < 1024) {
-               $srcport = "$srcport($servi)"; 
+               $srcport = "$srcport($servi)";
        }
        $servi = uc(getservbyport($dstport, lc($proto)));
        if ($servi ne '' && $dstport < 1024) {
@@ -375,11 +375,11 @@ foreach $_ (@log)
        my $col="";
        if ($lines % 2) {
                print "<tr>";
-               $col="bgcolor='$color{'color20'}'"; 
+               $col="bgcolor='$color{'color20'}'";
        }
        else {
                print "<tr>";
-               $col="bgcolor='$color{'color22'}'"; 
+               $col="bgcolor='$color{'color22'}'";
        }
        print <<END
 
@@ -428,21 +428,21 @@ END
 
        print "<td align='center' width='50%'>";
        if ($prev != -1) {
-               print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?0,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'first'}</a> "; 
-               print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'older'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?0,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'first'}</a> ";
+               print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'older'}</a>";
        }
        else {
-               print "$Lang::tr{'first'} $Lang::tr{'older'}"; 
+               print "$Lang::tr{'first'} $Lang::tr{'older'}";
        }
        print "</td>\n";
 
        print "<td align='center' width='50%'>";
        if ($next >= 0) {
                print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'newer'}</a> ";
-               print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?$lastPageIndex,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'last'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/firewalllog.dat?$lastPageIndex,$cgiparams{'MONTH'},$cgiparams{'DAY'}'>$Lang::tr{'last'}</a>";
        }
        else {
-               print "$Lang::tr{'newer'} $Lang::tr{'last'} "; 
+               print "$Lang::tr{'newer'} $Lang::tr{'last'} ";
        }
        print "</td>\n";
 
index a55b805114195d44b78146cf11c7f75b338a1d03..4e998a567a13e024951db992f425fbf520adb94b 100644 (file)
@@ -4,7 +4,7 @@
 #
 # This code is distributed under the terms of the GPL
 #
-# JC HERITIER 
+# JC HERITIER
 # page inspired from the initial firewalllog.dat
 #
 # Modified for IPFire by Christian Schmidt
@@ -150,7 +150,7 @@ my $longmonthstr = $longmonths[$cgiparams{'MONTH'}];
 my $day = $cgiparams{'DAY'};
 my $daystr='';
 if ($day <= 9) {
-       $daystr = " $day"; 
+       $daystr = " $day";
 }
 else {
        $daystr = $day;
@@ -182,7 +182,7 @@ if (!$skip)
                        $lines++;
                }
        }
-       close (FILE);   
+       close (FILE);
 }
 
 $skip=0;
@@ -249,7 +249,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -386,7 +386,7 @@ my @numb;
 my $o;
 
 if($cgiparams{'otherspie'} == 2 ){}
-else{ 
+else{
        my $numothers;
        for($o=0;$o<$pienumber;$o++){
                $numothers = $numothers + $numb[$o];
index 4474a8c595fad8434c580465216b679be04cb421..a7c6e5f80b5d2b4622ee1b7b246f40497c074c8d 100644 (file)
@@ -4,7 +4,7 @@
 #
 # This code is distributed under the terms of the GPL
 #
-# JC HERITIER 
+# JC HERITIER
 # page inspired from the initial firewalllog.dat
 #
 # Modified for IPFire by Christian Schmidt
@@ -181,7 +181,7 @@ if (!$skip)
                        $lines++;
                }
        }
-       close (FILE);   
+       close (FILE);
 }
 
 $skip=0;
@@ -237,7 +237,7 @@ for ($month = 0; $month < 12; $month++)
 {
        print "\t<option ";
        if ($month == $cgiparams{'MONTH'}) {
-               print "selected='selected' "; 
+               print "selected='selected' ";
        }
        print "value='$month'>$longmonths[$month]</option>\n";
 }
@@ -249,11 +249,11 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
-               print "selected='selected' "; 
+               print "selected='selected' ";
        }
        print "value='$day'>$day</option>\n";
 }
@@ -359,7 +359,7 @@ my @numb;
 my $o;
 
 if($cgiparams{'otherspie'} == 2 ){}
-else{ 
+else{
        my $numothers;
        for($o=0;$o<$pienumber;$o++){
                $numothers = $numothers + $numb[$o];
@@ -437,7 +437,7 @@ for($s=0;$s<$lines;$s++)
 
        # Get country code.
        my $ccode = &Location::Functions::lookup_country_code($key[$s]);
-  
+
        $color++;
        print "<td align='center' $col><form method='post' action='showrequestfromip.dat'><input type='hidden' name='MONTH' value='$cgiparams{'MONTH'}'> <input type='hidden' name='DAY' value='$cgiparams{'DAY'}'> <input type='hidden' name='ip' value='$key[$s]'> <input type='submit' value='$Lang::tr{'details'}'></form></td>";
        print "<td align='center' $col><a href='/cgi-bin/ipinfo.cgi?ip=$key[$s]'>$key[$s]</a></td>";
index bcaffad7040d6c1e77d9fecf7870dbdf2804fda3..60b3b060384f2ffd6d12c9d7a97b2f8de6eff094 100644 (file)
@@ -4,7 +4,7 @@
 #
 # This code is distributed under the terms of the GPL
 #
-# JC HERITIER 
+# JC HERITIER
 # page inspired from the initial firewalllog.dat
 #
 # Modified for IPFire by Christian Schmidt
@@ -249,7 +249,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -360,7 +360,7 @@ my @numb;
 my $o;
 
 if($cgiparams{'otherspie'} == 2 ){}
-else{ 
+else{
        my $numothers;
        for($o=0;$o<$pienumber;$o++){
                $numothers = $numothers + $numb[$o];
index b9c19aa175ce57659725b7c767f023bf6515f57c..35c0dd1fd600ba26b827202b7bc430639e88287e 100644 (file)
@@ -71,7 +71,7 @@ if ($ENV{'QUERY_STRING'} && $cgiparams{'ACTION'} ne $Lang::tr{'update'})
        my @temp = split(',',$ ENV{'QUERY_STRING'});
        $start = $temp[0];
        $cgiparams{'MONTH'} = $temp[1];
-       $cgiparams{'DAY'} = $temp[2];  
+       $cgiparams{'DAY'} = $temp[2];
 }
 
 if (!($cgiparams{'MONTH'} =~ /^(0|1|2|3|4|5|6|7|8|9|10|11)$/) ||
@@ -116,7 +116,7 @@ if (($cgiparams{'DAY'} ne $now[3]) || ($cgiparams{'MONTH'} ne $now[4]))
                @then = localtime(POSIX::mktime( 0, 0, 0, $cgiparams{'DAY'}, $cgiparams{'MONTH'}, $year - 1900 ));
        }
        $tdoy = $then[7];
-       my $lastleap=($year-1)%4; 
+       my $lastleap=($year-1)%4;
         if ($tdoy>$doy) {
                if ($lastleap == 0 && $tdoy < 60) {
                        $doy=$doy+366;
@@ -158,7 +158,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'export'})
 {
        print "Content-type: text/plain\n\n";
        print "IPFire IPS log\r\n";
-       print "Date: $cgiparams{'DAY'} $longmonths[$cgiparams{'MONTH'}]\r\n"; 
+       print "Date: $cgiparams{'DAY'} $longmonths[$cgiparams{'MONTH'}]\r\n";
        print "\r\n";
 
        if ($logsettings{'LOGVIEW_REVERSE'} eq 'on') { @log = reverse @log; }
@@ -231,7 +231,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for (my $day = 1; $day <= 31; $day++) 
+for (my $day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
index 1005732142d8673c7f22e675af85dfd735ad8242..8fbf4f8fab7f277d336be52cc79353be10f7aaac 100755 (executable)
@@ -329,7 +329,7 @@ unless ($errormessage) {
 }
 
 # If nothing has been fetched, the amount of lines is still zero.
-# In this case display a hint about no data.   
+# In this case display a hint about no data.
 unless ($lines) {
        print "<tr><td bgcolor='$color{'color22'}' colspan='6' align='center'>$Lang::tr{'no entries'}</td></tr>\n";
 }
index 8724768ea669ed2c17567038ccacabdad667b86b..5109ca4cf01f5d39c277e9c326125443887140d3 100644 (file)
@@ -50,7 +50,7 @@ my $doy = $now[7];    # day of year (0..364)
 my $tdoy = $now[7];
 my $year = $now[5]+1900;
 
-$cgiparams{'DAY'} = $now[3]; 
+$cgiparams{'DAY'} = $now[3];
 $cgiparams{'MONTH'} = $now[4];
 $cgiparams{'SOURCE_IP'} = 'ALL';
 $cgiparams{'FILTER'} = "[.](gif|jpeg|jpg|png|css|js)\$";
@@ -70,7 +70,7 @@ if ($cgiparams{'ACTION'} eq '')
 if ($cgiparams{'ACTION'} eq $Lang::tr{'restore defaults'})
 {
        $cgiparams{'FILTER'} = "[.](gif|jpeg|jpg|png|css|js)\$";
-       $cgiparams{'ENABLE_FILTER'} = 'off'; 
+       $cgiparams{'ENABLE_FILTER'} = 'off';
 }
 
 {
@@ -88,7 +88,7 @@ if ($ENV{'QUERY_STRING'} && $cgiparams{'ACTION'} ne $Lang::tr{'update'})
        my @temp = split(',',$ENV{'QUERY_STRING'});
        $start = $temp[0];
        $cgiparams{'MONTH'} = $temp[1];
-       $cgiparams{'DAY'} = $temp[2];  
+       $cgiparams{'DAY'} = $temp[2];
        $cgiparams{'SOURCE_IP'} = $temp[3];
        $cgiparams{'USERNAME'} = &Header::escape($temp[4]);
 }
@@ -151,7 +151,7 @@ my $daystr = $cgiparams{'DAY'} == 0 ? '' :$cgiparams{'DAY'} <= 9 ? "0$cgiparams{
 
     # Calculate time. If future date, calculate for past year !!!
     if (( $cgiparams{'MONTH'} eq $now[4]) && ($cgiparams{'DAY'} > $now[3]) ||
-       ( $cgiparams{'MONTH'}  > $now[4] ) ) {  
+       ( $cgiparams{'MONTH'}  > $now[4] ) ) {
        $xday = POSIX::mktime( 0, 0, 0, $cgiparams{'DAY'}, $cgiparams{'MONTH'}, $year - 1901 );
        $daystr = "$longmonths[$cgiparams{'MONTH'}] $daystr, ". int($year-1);
     } else {
@@ -210,14 +210,14 @@ if ($@ ne '')
 
            $temp_now[2] = $temp_now[1] = $temp_now[0] = 0; # start at 00:00:00
            $temp_now[3] = 1 if ($cgiparams{'DAY'}==0); # All days selected, start at '1'
-            my $mintime = POSIX::mktime(@temp_now); 
+            my $mintime = POSIX::mktime(@temp_now);
            my $maxtime;
            if ($cgiparams{'DAY'}==0) {                 # full month
                if ($temp_now[4]++ == 12){
                    $temp_now[4] = 0;
                    $temp_now[5]++;
                };
-               $maxtime = POSIX::mktime(@temp_now); 
+               $maxtime = POSIX::mktime(@temp_now);
            } else {
                $maxtime = $mintime + 86400;            # full day
            }
@@ -248,7 +248,7 @@ if ($@ ne '')
                        #    $datetime = $maxtime; # we have read viewsize lines, stop main loop
                        #    last READ;           # exit read file
                        }
-                   }   
+                   }
                }
 
                # finish loop when date of lines are past maxtime
@@ -278,7 +278,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'export'})
 {
        print "Content-type: text/plain\n\n";
        print "IPFire proxy log\r\n";
-       print "$Lang::tr{'date'}: $daystr\r\n"; 
+       print "$Lang::tr{'date'}: $daystr\r\n";
        print "Source IP: $cgiparams{'SOURCE_IP'}\r\n";
        print "Username: $cgiparams{'USERNAME'}\r\n";
        if ($cgiparams{'ENABLE_FILTER'} eq 'on') {
@@ -350,7 +350,7 @@ print <<END
 END
 ;
 print "<option value='0'>$Lang::tr{'all'}</option>";
-for (my $day = 1; $day <= 31; $day++) 
+for (my $day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -464,7 +464,7 @@ foreach $_ (@log)
 
        $url =~ /(^.{0,60})/;
        my $part = $1;
-       unless (length($part) < 60) { $part = "${part}..."; }  
+       unless (length($part) < 60) { $part = "${part}..."; }
        $url = &Header::cleanhtml($url,"y");
        $part = &Header::cleanhtml($part,"y");
        if ($cgiparams{'DAY'}==0) {                     # full month
index f81994f870ccdd658c22cb764240ee99cd5ad00f..39f60cd5df0ac26a13ba1f66803ec87a2b9fcaa4 100644 (file)
@@ -3,7 +3,7 @@
 #
 # This code is distributed under the terms of the GPL
 #
-# JC HERITIER 
+# JC HERITIER
 # page inspired from the initial firewalllog.dat
 #
 # Modified for IPFire by Christian Schmidt (www.ipfire.org)
@@ -168,7 +168,7 @@ if (!$skip)
                        if ($packet =~ /PHYSIN=(\w+)/) { $iface = $1; } elsif ($packet =~ /IN=(\w+)/) { $iface = $1; }
                        # Extract ipv4 and ipv6 addresses
                        if (($packet =~ /SRC\=(([\d]{1,3})(\.([\d]{1,3})){3})/) or ($packet =~ /SRC\=(([0-9a-fA-F]{0,4})(\:([0-9a-fA-F]{0,4})){2,7})/)) {
-                               $srcaddr = $1; 
+                               $srcaddr = $1;
                        }
 
                        if($iface eq $country) {
@@ -186,7 +186,7 @@ if (!$skip)
                        }
                }
        }
-       close (FILE);   
+       close (FILE);
 }
 
 $skip=0;
@@ -257,7 +257,7 @@ for ($month = 0; $month < 12; $month++)
 {
        print "\t<option ";
        if ($month == $cgiparams{'MONTH'}) {
-               print "selected='selected' "; 
+               print "selected='selected' ";
        }
        print "value='$month'>$longmonths[$month]</option>\n";
 }
@@ -269,7 +269,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -295,7 +295,7 @@ END
 print "<p><b>$Lang::tr{'firewall hits'} $longmonthstr $daystr: $lines</b></p>";
 
 if ($start == -1) {
-       $start = $lines - ${Header::viewsize}; 
+       $start = $lines - ${Header::viewsize};
 }
 if ($start >= $lines - ${Header::viewsize}) { $start = $lines - ${Header::viewsize}; };
 if ($start < 0) { $start = 0; }
@@ -336,9 +336,9 @@ foreach $_ (@slice)
        if    (/^... (..) (..:..:..) [\w\-]+ kernel:(.*)(PHYSIN=.*)$/) {}
        elsif (/^... (..) (..:..:..) [\w\-]+ kernel:(.*)(IN=.*)$/) {};
        my $packet = $4;
-       my $iface = ''; 
+       my $iface = '';
        # If ipv6 uses bridge, use PHYSIN otherwise use IN
-       if ($packet =~ /PHYSIN=(\w+)/) { $iface = $1; } elsif ($packet =~ /IN=(\w+)/) { $iface = $1; }  
+       if ($packet =~ /PHYSIN=(\w+)/) { $iface = $1; } elsif ($packet =~ /IN=(\w+)/) { $iface = $1; }
        if ( $1 =~ /2./ ){ $iface=""; }
        my $srcaddr = '';
        # Extract ipv4 and ipv6 addresses
@@ -377,10 +377,10 @@ foreach $_ (@slice)
                        if ($a =~ /DPT\=([\d\.]+)/){ $dstport = $1; }
 
                        if ($lines % 2) {
-                               print "<tr bgcolor='${Header::table1colour}'>\n"; 
+                               print "<tr bgcolor='${Header::table1colour}'>\n";
                        }
                        else {
-                               print "<tr bgcolor='${Header::table2colour}'>\n"; 
+                               print "<tr bgcolor='${Header::table2colour}'>\n";
                        }
                        print <<END
                        <td align='center'>$time</td>
@@ -432,19 +432,19 @@ END
 
        print "<td align='center' width='50%'>";
        if ($prev != -1) {
-               print "<a href='/cgi-bin/logs.cgi/showrequestfromcountry.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{country}'>$Lang::tr{'older'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/showrequestfromcountry.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{country}'>$Lang::tr{'older'}</a>";
        }
        else {
-               print "$Lang::tr{'older'}"; 
+               print "$Lang::tr{'older'}";
        }
        print "</td>\n";
 
        print "<td align='center' width='50%'>";
        if ($next != -1) {
-               print "<a href='/cgi-bin/logs.cgi/showrequestfromcountry.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{country}'>$Lang::tr{'newer'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/showrequestfromcountry.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{country}'>$Lang::tr{'newer'}</a>";
        }
        else {
-               print "$Lang::tr{'newer'}"; 
+               print "$Lang::tr{'newer'}";
        }
 
        print "</td>\n";
index 31cd42c33f106eeb7e4be46e480b1bbfaf3874c8..d7bb8c6a46ddb58a966d598c468478a837babad4 100644 (file)
@@ -3,7 +3,7 @@
 #
 # This code is distributed under the terms of the GPL
 #
-# JC HERITIER 
+# JC HERITIER
 # page inspired from the initial firewalllog.dat
 #
 # Modified for IPFire by Christian Schmidt (www.ipfire.org)
@@ -162,7 +162,7 @@ if (!$skip)
                        }
                }
        }
-       close (FILE);   
+       close (FILE);
 }
 
 $skip=0;
@@ -230,7 +230,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -256,7 +256,7 @@ END
 print "<p><b>$Lang::tr{'firewall hits'} $longmonthstr $daystr: $lines</b></p>";
 
 if ($start == -1) {
-       $start = $lines - ${Header::viewsize}; 
+       $start = $lines - ${Header::viewsize};
 }
 if ($start >= $lines - ${Header::viewsize}) { $start = $lines - ${Header::viewsize}; };
 if ($start < 0) { $start = 0; }
@@ -320,10 +320,10 @@ foreach $_ (@slice) {
                        if ($a =~  /DPT\=([\d\.]+)/){ $dstport = $1; }
 
                        if ($lines % 2) {
-                               print "<tr bgcolor='${Header::table1colour}'>\n"; 
+                               print "<tr bgcolor='${Header::table1colour}'>\n";
                        }
                        else {
-                               print "<tr bgcolor='${Header::table2colour}'>\n"; 
+                               print "<tr bgcolor='${Header::table2colour}'>\n";
                        }
                        print <<END
                        <td align='center'>$time</td>
@@ -375,19 +375,19 @@ END
 
        print "<td align='center' width='50%'>";
        if ($prev != -1) {
-               print "<a href='/cgi-bin/logs.cgi/showrequestfromip.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{ip}'>$Lang::tr{'older'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/showrequestfromip.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{ip}'>$Lang::tr{'older'}</a>";
        }
        else {
-               print "$Lang::tr{'older'}"; 
+               print "$Lang::tr{'older'}";
        }
        print "</td>\n";
 
        print "<td align='center' width='50%'>";
        if ($next != -1) {
-               print "<a href='/cgi-bin/logs.cgi/showrequestfromip.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{ip}'>$Lang::tr{'newer'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/showrequestfromip.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{ip}'>$Lang::tr{'newer'}</a>";
        }
        else {
-               print "$Lang::tr{'newer'}"; 
+               print "$Lang::tr{'newer'}";
        }
        print "</td>\n";
 
index 004a00e6a32005a09015405a6a897c589a8ac1ec..d0dd036b2edb6aed1b95c2399b0e0cb4190a0188 100644 (file)
@@ -4,14 +4,14 @@
 #
 # This code is distributed under the terms of the GPL
 #
-# JC HERITIER 
+# JC HERITIER
 # page inspired from the initial firewalllog.dat
 #
 # Modified for IPFire by Christian Schmidt (www.ipfire.org)
 
 #Aug 28 14:54:30 shite kernel: IN=ppp0 OUT= MAC= SRC=213.48.150.1
 #DST=213.208.115.234 LEN=110 TOS=0x00 PREC=0x00 TTL=60 ID=30699 DF PROTO=TCP
-#SPT=6667 DPT=62593 WINDOW=2505 RES=0x00 ACK PSH URGP=0  
+#SPT=6667 DPT=62593 WINDOW=2505 RES=0x00 ACK PSH URGP=0
 
 use strict;
 
@@ -170,7 +170,7 @@ if (!$skip)
                        }
                }
        }
-       close (FILE);   
+       close (FILE);
 }
 
 $skip=0;
@@ -238,7 +238,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -264,7 +264,7 @@ END
 print "<p><b>$Lang::tr{'firewall hits'} $longmonthstr $daystr: $lines</b></p>";
 
 if ($start == -1) {
-       $start = $lines - ${Header::viewsize}; 
+       $start = $lines - ${Header::viewsize};
 }
 if ($start >= $lines - ${Header::viewsize}) { $start = $lines - ${Header::viewsize}; };
 if ($start < 0) { $start = 0; }
@@ -330,10 +330,10 @@ foreach $_ (@slice)
                        if ($a =~  /DPT\=([\d\.]+)/){ $dstport = $1; }
 
                        if ($lines % 2) {
-                               print "<tr bgcolor='${Header::table1colour}'>\n"; 
+                               print "<tr bgcolor='${Header::table1colour}'>\n";
                        }
                        else {
-                               print "<tr bgcolor='${Header::table2colour}'>\n"; 
+                               print "<tr bgcolor='${Header::table2colour}'>\n";
                        }
                        print <<END
                        <td align='center'>$time</td>
@@ -385,19 +385,19 @@ END
 
        print "<td align='center' width='50%'>";
        if ($prev != -1) {
-               print "<a href='/cgi-bin/logs.cgi/showrequestfromport.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{port}'>$Lang::tr{'older'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/showrequestfromport.dat?$prev,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{port}'>$Lang::tr{'older'}</a>";
        }
        else {
-               print "$Lang::tr{'older'}"; 
+               print "$Lang::tr{'older'}";
        }
        print "</td>\n";
 
        print "<td align='center' width='50%'>";
        if ($next != -1) {
-               print "<a href='/cgi-bin/logs.cgi/showrequestfromport.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{port}'>$Lang::tr{'newer'}</a>"; 
+               print "<a href='/cgi-bin/logs.cgi/showrequestfromport.dat?$next,$cgiparams{'MONTH'},$cgiparams{'DAY'},$cgiparams{port}'>$Lang::tr{'newer'}</a>";
        }
        else {
-               print "$Lang::tr{'newer'}"; 
+               print "$Lang::tr{'newer'}";
        }
        print "</td>\n";
 
index 1efe8b71f9532dd9de2fe5f8b71b9415f43f54bb..cbca48c4975c347099cb9176845bbe79024806ee 100644 (file)
@@ -152,7 +152,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for (my $day = 1; $day <= 31; $day++) 
+for (my $day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
index 554169ab04bbdc8134fb2253b5ed6e008345dbc7..283db52cd77957e03cf5ab2cbb4cc99c49017d3b 100644 (file)
@@ -107,8 +107,8 @@ if ($ENV{'QUERY_STRING'} && $cgiparams{'ACTION'} ne $Lang::tr{'update'})
        @temp = split(',',$ ENV{'QUERY_STRING'});
        $start = $temp[0];
        $cgiparams{'MONTH'} = $temp[1];
-       $cgiparams{'DAY'} = $temp[2];  
-       $cgiparams{'LOGTYPE'} = $temp[3];  
+       $cgiparams{'DAY'} = $temp[2];
+       $cgiparams{'LOGTYPE'} = $temp[3];
 }
 
 if (!($cgiparams{'MONTH'} =~ /^(0|1|2|3|4|5|6|7|8|9|10|11)$/) ||
@@ -153,7 +153,7 @@ if (($cgiparams{'DAY'} ne $now[3]) || ($cgiparams{'MONTH'} ne $now[4]))
                @then = localtime(POSIX::mktime( 0, 0, 0, $cgiparams{'DAY'}, $cgiparams{'MONTH'}, $year - 1900 ));
        }
        $tdoy = $then[7];
-       $lastleap=($year-1)%4; 
+       $lastleap=($year-1)%4;
         if ($tdoy>$doy) {
                if ($lastleap == 0 && $tdoy < 60) {
                        $doy=$tdoy+366;
@@ -180,7 +180,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'export'})
        print "Content-type: text/plain\n\n";
        print "IPCop URL filter log\r\n";
        print "Section: $cgiparams{'LOGTYPE'}\r\n";
-       print "Date: $daystr $longmonthstr\r\n"; 
+       print "Date: $daystr $longmonthstr\r\n";
        print "\r\n";
 
        if ($logsettings{'LOGVIEW_REVERSE'} eq 'on') { @log = reverse @log; }
@@ -258,7 +258,7 @@ print <<END
        <select name='DAY'>
 END
 ;
-for ($day = 1; $day <= 31; $day++) 
+for ($day = 1; $day <= 31; $day++)
 {
        print "\t<option ";
        if ($day == $cgiparams{'DAY'}) {
@@ -434,7 +434,7 @@ sub processevent
                                close(LOG);
                        }
                }
-               @log = sort { substr($a,11,8) cmp substr($b,11,8) } @log; 
+               @log = sort { substr($a,11,8) cmp substr($b,11,8) } @log;
 
        }
 }
index f4c5aa2d4bff792b75587ac6035db047a1d2387b..6811fa89cbe256b749ee29c7856ef72354ceffa6 100644 (file)
@@ -45,11 +45,11 @@ my $errormessage = '';
 if ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {
        $macsettings{'MAC'} =~ s/\-/:/g;
        my @mac = split(/:/,$macsettings{"MAC"});
-       if ($#mac == 5) { 
+       if ($#mac == 5) {
                foreach (@mac) {
                        unless ($_ =~ /^[a-fA-F0-9]{1,2}$/) {
                                        $errormessage = $Lang::tr{'mac address error not valid'};
-                                       last;                   
+                                       last;
                        }
                }
        } else {
@@ -58,11 +58,11 @@ if ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {
        $macsettings{'MAC1'} =~ s/\-/:/g;
        if ( not ($macsettings{'MAC1'} eq "" )) {
                my @mac = split(/:/,$macsettings{"MAC1"});
-               if ($#mac == 5) { 
+               if ($#mac == 5) {
                        foreach (@mac) {
                                unless ($_ =~ /^[a-fA-F0-9]{1,2}$/) {
                                                $errormessage = $Lang::tr{'mac address error not valid'};
-                                               last;                   
+                                               last;
                                }
                        }
                } else {
@@ -72,11 +72,11 @@ if ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {
        $macsettings{'MAC2'} =~ s/\-/:/g;
        if ( not ($macsettings{'MAC2'} eq "" )) {
                my @mac = split(/:/,$macsettings{"MAC2"});
-               if ($#mac == 5) { 
+               if ($#mac == 5) {
                        foreach (@mac) {
                                unless ($_ =~ /^[a-fA-F0-9]{1,2}$/) {
                                                $errormessage = $Lang::tr{'mac address error not valid'};
-                                               last;                   
+                                               last;
                                }
                        }
                } else {
@@ -87,8 +87,8 @@ if ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {
                $macsettings{'MAC'} =~ s/\:/-/g;
                $macsettings{'MAC1'} =~ s/\:/-/g;
                $macsettings{'MAC2'} =~ s/\:/-/g;
-               &General::writehash("${General::swroot}/mac/settings", \%macsettings);  
-               &Header::openbox('100%', 'left', $Lang::tr{'mac address saved'});                                                               
+               &General::writehash("${General::swroot}/mac/settings", \%macsettings);
+               &Header::openbox('100%', 'left', $Lang::tr{'mac address saved'});
                print "<font class='base'>$Lang::tr{'mac address saved txt'}</font>\n";
                &Header::closebox();
        }
@@ -97,13 +97,13 @@ if ($macsettings{'ACTION'} eq $Lang::tr{'reconnect'}) {
        &General::system_background("/usr/local/bin/redctrl", "restart");
        &Header::openbox('100%', 'left', $Lang::tr{'mac address recon'} );
        print "<font class='base'>$Lang::tr{'mac address done'}</font>\n";
-       &Header::closebox();    
+       &Header::closebox();
 }
 if ($macsettings{'ACTION'} eq $Lang::tr{'delete'} ) {
        system("cat /dev/null > ${General::swroot}/mac/settings &");
        &Header::openbox('100%', 'left', $Lang::tr{'mac address deleted'} );
        print "<font class='base'>$Lang::tr{'mac address deleted txt'}</font>\n";
-       &Header::closebox();    
+       &Header::closebox();
 }
 if ($macsettings{'ACTION'} eq $Lang::tr{'reboot'}) {
        &General::log($Lang::tr{'rebooting ipfire'});
@@ -138,17 +138,17 @@ print <<END
 END
 ;
 if ($macsettings{'ACTION'} eq $Lang::tr{'delete'} ) {
-print <<END 
+print <<END
       <input type="text" name="MAC" maxlength="17" value=''/></td>
 END
 ;
-} else {   
+} else {
 print <<END
       <input type="text" name="MAC" maxlength="17" value='$macsettings{"MAC"}'/></td>
 END
-;  
-} 
-print <<END    
+;
+}
+print <<END
   </tr>
     <tr>
     <td>&nbsp;</td>
@@ -158,17 +158,17 @@ print <<END
 END
 ;
 if ($macsettings{'ACTION'} eq $Lang::tr{'delete'} ) {
-print <<END 
+print <<END
       <input type="text" name="MAC1" maxlength="17" value=''/></td>
 END
 ;
-} else {   
+} else {
 print <<END
       <input type="text" name="MAC1" maxlength="17" value='$macsettings{"MAC1"}'/></td>
 END
-;  
-} 
-print <<END    
+;
+}
+print <<END
   </tr>
     <tr>
     <td>&nbsp;</td>
@@ -178,18 +178,18 @@ print <<END
 END
 ;
 if ($macsettings{'ACTION'} eq $Lang::tr{'delete'} ) {
-print <<END 
+print <<END
       <input type="text" name="MAC2" maxlength="17" value=''/></td>
 END
 ;
-} else {   
+} else {
 print <<END
       <input type="text" name="MAC2" maxlength="17" value='$macsettings{"MAC2"}'/></td>
 END
-;  
-} 
+;
+}
 
-print <<END    
+print <<END
   </tr>
     <tr>
     <td colspan="2"><br><hr /></td>
@@ -208,7 +208,7 @@ print <<END
       <input type='submit' name='ACTION' value='$Lang::tr{'reboot'}' />
 END
 ;
-} elsif ($macsettings{'ACTION'} eq $Lang::tr{'save'} && $errormessage eq "") { 
+} elsif ($macsettings{'ACTION'} eq $Lang::tr{'save'} && $errormessage eq "") {
 print <<END
       <input type='submit' name='ACTION' value='$Lang::tr{'save'}' />
       &nbsp;&nbsp;&nbsp;&nbsp;
@@ -217,12 +217,12 @@ print <<END
       <input type='submit' name='ACTION' value='$Lang::tr{'reconnect'}' />
 END
 ;
-} elsif ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {        
+} elsif ($macsettings{'ACTION'} eq $Lang::tr{'save'}) {
 print <<END
       <input type='submit' name='ACTION' value='$Lang::tr{'save'}' />
 END
 ;
-} else {       
+} else {
 print <<END
       <input type='submit' name='ACTION' value='$Lang::tr{'save'}' />
       &nbsp;&nbsp;&nbsp;&nbsp;
index 68c516660bf32c040e025fbe04972c78729e2ffd..4ebc6b03368f0c0d8aa9306bb9c9774af7a4434f 100755 (executable)
@@ -18,9 +18,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
 #                                                                             #
 ###############################################################################
+
 use MIME::Lite;
+
 #enable only the following on debugging purpose
 #use warnings;
 #use CGI::Carp 'fatalsToBrowser';
@@ -157,14 +157,14 @@ sub configsite{
        $selected{'mail_tls'}{'explicit'} = 'selected' if exists $dma{'STARTTLS'};
        $selected{'mail_tls'}{'implicit'} = 'selected' if (exists $dma{'SECURETRANSFER'}) and (not exists $dma{'STARTTLS'});
        $selected{'mail_tls'}{'disabled'} = 'selected' if (not exists $dma{'SECURETRANSFER'}) and (not exists $dma{'STARTTLS'});
-       
+
        #Open site
        &Header::openpage($Lang::tr{'email settings'}, 1, '');
        &Header::openbigbox('100%', 'center');
        &error;
        &info;
        &Header::openbox('100%', 'left', $Lang::tr{'email config'});
-       
+
        #### JAVA SCRIPT ####
        print<<END;
 <script>
@@ -257,7 +257,7 @@ END
        </form>
 END
        &Header::closebox();
-       &Header::closebigbox(); 
+       &Header::closebigbox();
        &Header::closepage();
        exit 0;
 }
index bf5080d01dd726f9227ed9307a26afefede20a43..640a0a049d2478ffdc4678377c2213a393c1dde0 100644 (file)
@@ -40,13 +40,13 @@ $modemsettings{'VALID'} = '';
 &Header::getcgihash(\%modemsettings);
 
 if ($modemsettings{'ACTION'} eq $Lang::tr{'save'})
-{ 
+{
         if (!($modemsettings{'TIMEOUT'} =~ /^\d+$/))
         {
                $errormessage = $Lang::tr{'timeout must be a number'};
                goto ERROR;
         }
-ERROR:   
+ERROR:
         if ($errormessage) {
                 $modemsettings{'VALID'} = 'no'; }
         else {
index cc56670448c89e27995e28ce213aa2f73670e525..fb1097d61452a9ad95434390b87fa84e65eb8208 100644 (file)
@@ -83,13 +83,13 @@ if ( $netsettings{'CONFIG_TYPE'} =~ /^(1|2|3|4)$/  && $netsettings{'RED_TYPE'} e
                if ($dhcpinfo{'dhcp_lease_time'} ne "") {
                        $lsetme=$dhcpinfo{'dhcp_lease_time'};
                        $lsetme=($lsetme/60);
-                       
+
                        if ($lsetme > 59) {
                                $lsetme=($lsetme/60); $leasetime=$lsetme." Hour";
                        }else{
                                $leasetime=$lsetme." Minute";
                        }
-                       
+
                        if ($lsetme > 1) {
                                $leasetime=$leasetime."s";
                        }
@@ -101,13 +101,13 @@ if ( $netsettings{'CONFIG_TYPE'} =~ /^(1|2|3|4)$/  && $netsettings{'RED_TYPE'} e
                if ($dhcpinfo{'dhcp_renewal_time'} ne "") {
                        $rentme=$dhcpinfo{'dhcp_renewal_time'};
                        $rentme=($rentme/60);
-                       
+
                        if ($rentme > 59){
                                $rentme=($rentme/60); $rnwltime=$rentme." Hour";
                        }else{
                                $rnwltime=$rentme." Minute";
                        }
-                       
+
                        if ($rentme > 1){
                                $rnwltime=$rnwltime."s";
                        }
index 5985d534c8f97677f5f122540e96fd21b9768939..fd6d14ab390cabebf8e87ac10b79c9ccd539eb17 100644 (file)
@@ -264,11 +264,11 @@ sub pkiconfigcheck
 }
 
 sub writeserverconf {
-    my %sovpnsettings = ();  
-    my @temp = ();  
+    my %sovpnsettings = ();
+    my @temp = ();
     &General::readhash("${General::swroot}/ovpn/settings", \%sovpnsettings);
     &read_routepushfile;
-    
+
     open(CONF,    ">${General::swroot}/ovpn/server.conf") or die "Unable to open ${General::swroot}/ovpn/server.conf: $!";
     flock CONF, 2;
     print CONF "#OpenVPN Server conf\n";
@@ -332,9 +332,9 @@ sub writeserverconf {
                print CONF "fragment $sovpnsettings{'FRAGMENT'}\n";
     }
 
-    if ($sovpnsettings{KEEPALIVE_1} > 0 && $sovpnsettings{KEEPALIVE_2} > 0) {  
+    if ($sovpnsettings{KEEPALIVE_1} > 0 && $sovpnsettings{KEEPALIVE_2} > 0) {
        print CONF "keepalive $sovpnsettings{'KEEPALIVE_1'} $sovpnsettings{'KEEPALIVE_2'}\n";
-    }  
+    }
     print CONF "status-version 1\n";
     print CONF "status /var/run/ovpnserver.log 30\n";
     print CONF "ncp-disable\n";
@@ -363,13 +363,13 @@ sub writeserverconf {
     if ($sovpnsettings{DHCP_WINS} ne '') {
         print CONF "push \"dhcp-option WINS $sovpnsettings{DHCP_WINS}\"\n";
     }
-    
+
     if ($sovpnsettings{MAX_CLIENTS} eq '') {
        print CONF "max-clients 100\n";
     }
     if ($sovpnsettings{MAX_CLIENTS} ne '') {
        print CONF "max-clients $sovpnsettings{MAX_CLIENTS}\n";
-    }  
+    }
     print CONF "tls-verify /usr/lib/openvpn/verify\n";
     print CONF "crl-verify /var/ipfire/ovpn/crls/cacrl.pem\n";
     print CONF "user nobody\n";
@@ -402,9 +402,9 @@ sub writeserverconf {
        close (LSC);
     }
     print CONF "\n";
-    
+
     close(CONF);
-}    
+}
 
 sub emptyserverlog{
     if (open(FILE, ">/var/run/ovpnserver.log")) {
@@ -415,7 +415,7 @@ sub emptyserverlog{
 
 }
 
-sub delccdnet 
+sub delccdnet
 {
        my %ccdconfhash = ();
        my %ccdhash = ();
@@ -436,7 +436,7 @@ sub delccdnet
                        }
        }
        &General::writehasharray("${General::swroot}/ovpn/ccd.conf", \%ccdconfhash);
-       
+
        &writeserverconf;
        return 0;
 }
@@ -452,21 +452,21 @@ sub addccdnet
        my $checkup;
        my $ccdip;
        my $baseaddress;
-       
-       
-       #check name     
-       if ($ccdname eq '') 
+
+
+       #check name
+       if ($ccdname eq '')
        {
                $errormessage=$errormessage.$Lang::tr{'ccd err name'}."<br>";
                return
        }
-       
+
        if(!&General::validhostname($ccdname))
        {
                $errormessage=$Lang::tr{'ccd err invalidname'};
                return;
        }
-               
+
        ($ccdip,$subcidr) = split (/\//,$ccdnet);
        $subcidr=&General::iporsubtocidr($subcidr);
        #check subnet
@@ -499,7 +499,7 @@ sub addccdnet
 
 sub modccdnet
 {
-       
+
        my $newname=$_[0];
        my $oldname=$_[1];
        my %ccdconfhash=();
@@ -526,7 +526,7 @@ sub modccdnet
                        }
                }
        }
-       
+
        &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%ccdhash);
                foreach my $key (keys %ccdhash) {
                        if ($ccdhash{$key}[32] eq $oldname) {
@@ -535,7 +535,7 @@ sub modccdnet
                                last;
                        }
                }
-       
+
        return 0;
 }
 sub ccdmaxclients
@@ -554,7 +554,7 @@ sub ccdmaxclients
        return $e-1;
 }
 
-sub getccdadresses 
+sub getccdadresses
 {
        my $ipin=$_[0];
        my ($ip1,$ip2,$ip3,$ip4)=split  /\./, $ipin;
@@ -591,7 +591,7 @@ sub getccdadresses
 sub fillselectbox
 {
        my $boxname=$_[1];
-       my ($ccdip,$subcidr) = split("/",$_[0]); 
+       my ($ccdip,$subcidr) = split("/",$_[0]);
        my $tz=$_[2];
        my @allccdips=&getccdadresses($ccdip,$subcidr,&ccdmaxclients($ccdip."/".$subcidr),$tz);
        print"<select name='$boxname' STYLE='font-family : arial; font-size : 9pt; width:130px;' >";
@@ -628,10 +628,10 @@ sub check_routes_push
                                open(FILE,"${General::swroot}/ovpn/routes_push");
                                while (<FILE>) {
                                        $_=~s/\s*$//g;
-                                       
+
                                        my ($ip2,$cidr2) = split (/\//,"$_");
                                        my $val2=$ip2."/".&General::iporsubtodec($cidr2);
-                                       
+
                                        if($val eq $val2){
                                                return 0;
                                        }
@@ -682,7 +682,7 @@ sub check_ccdconf
                        if (&General::IpInSubnet ($ip,$ip2,&General::cidrtosub($cidr2))){
                                return 0;
                        }
-               
+
        }
        return 1;
 }
@@ -697,7 +697,7 @@ sub validdotmask
        if (&General::validip($ipdotmask)) { return 0; }
        if (!($ipdotmask =~ /^(.*?)\/(.*?)$/)) {  }
        my $mask = $2;
-       if (($mask =~ /\./ )) { return 0; }     
+       if (($mask =~ /\./ )) { return 0; }
   return 1;
 }
 
@@ -710,7 +710,7 @@ sub write_routepushfile
        if ($vpnsettings{'ROUTES_PUSH'} ne '') {
                print FILE $vpnsettings{'ROUTES_PUSH'};
        }
-       close(FILE); 
+       close(FILE);
 }
 
 sub read_routepushfile
@@ -721,7 +721,7 @@ sub read_routepushfile
                while (<FILE>) { $vpnsettings{'ROUTES_PUSH'} .= $_ };
                close(FILE);
                $cgiparams{'ROUTES_PUSH'} = $vpnsettings{'ROUTES_PUSH'};
-               
+
        }
 }
 
@@ -777,18 +777,18 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'start ovpn server'} ||
     if ($cgiparams{'ACTION'} eq $Lang::tr{'start ovpn server'}){
        &emptyserverlog();
        &General::system("/usr/local/bin/openvpnctrl", "-s");
-    }   
+    }
     #stop openvpn server
     if ($cgiparams{'ACTION'} eq $Lang::tr{'stop ovpn server'}){
        &General::system("/usr/local/bin/openvpnctrl", "-k");
-       &emptyserverlog();      
-    }   
+       &emptyserverlog();
+    }
 #    #restart openvpn server
 #    if ($cgiparams{'ACTION'} eq $Lang::tr{'restart ovpn server'}){
-#workarund, till SIGHUP also works when running as nobody    
-#      system('/usr/local/bin/openvpnctrl', '-r');     
-#      &emptyserverlog();      
-#    }       
+#workarund, till SIGHUP also works when running as nobody
+#      system('/usr/local/bin/openvpnctrl', '-r');
+#      &emptyserverlog();
+#    }
 }
 
 ###
@@ -813,11 +813,11 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save-adv-options'}) {
     $vpnsettings{'DHCP_WINS'} = $cgiparams{'DHCP_WINS'};
     $vpnsettings{'ROUTES_PUSH'} = $cgiparams{'ROUTES_PUSH'};
     my @temp=();
-    
+
     if ($cgiparams{'FRAGMENT'} eq '') {
        delete $vpnsettings{'FRAGMENT'};
     } else {
-       if ($cgiparams{'FRAGMENT'} !~ /^[0-9]+$/) { 
+       if ($cgiparams{'FRAGMENT'} !~ /^[0-9]+$/) {
            $errormessage = "Incorrect value, please insert only numbers.";
         goto ADV_ERROR;
                } else {
@@ -852,29 +852,29 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save-adv-options'}) {
     if ($cgiparams{'ROUTES_PUSH'} ne ''){
        @temp = split(/\n/,$cgiparams{'ROUTES_PUSH'});
        undef $vpnsettings{'ROUTES_PUSH'};
-       
+
        foreach my $tmpip (@temp)
        {
                s/^\s+//g; s/\s+$//g;
-               
+
                if ($tmpip)
                {
-                       $tmpip=~s/\s*$//g; 
+                       $tmpip=~s/\s*$//g;
                        unless (&General::validipandmask($tmpip)) {
                                $errormessage = "$tmpip ".$Lang::tr{'ovpn errmsg invalid ip or mask'};
                                goto ADV_ERROR;
                        }
                        my ($ip, $cidr) = split("\/",&General::ipcidr2msk($tmpip));
-                       
+
                        if ($ip eq $netsettings{'GREEN_NETADDRESS'} && $cidr eq $netsettings{'GREEN_NETMASK'}) {
                                $errormessage = $Lang::tr{'ovpn errmsg green already pushed'};
                                goto ADV_ERROR;
                        }
-# a.marx ccd                   
+# a.marx ccd
                        my %ccdroutehash=();
                        &General::readhasharray("${General::swroot}/ovpn/ccdroute", \%ccdroutehash);
                        foreach my $key (keys %ccdroutehash) {
-                               foreach my $i (1 .. $#{$ccdroutehash{$key}}) { 
+                               foreach my $i (1 .. $#{$ccdroutehash{$key}}) {
                                        if ( $ip."/".$cidr eq $ccdroutehash{$key}[$i] ){
                                                $errormessage="Route $ip\/$cidr ".$Lang::tr{'ccd err inuse'}." $ccdroutehash{$key}[0]" ;
                                                goto ADV_ERROR;
@@ -886,9 +886,9 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save-adv-options'}) {
                                        }
                                }
                        }
-                       
+
 # ccd end
-                       
+
                        $vpnsettings{'ROUTES_PUSH'} .= $tmpip."\n";
                }
        }
@@ -904,20 +904,20 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save-adv-options'}) {
         goto ADV_ERROR;
     }
     if ($cgiparams{'KEEPALIVE_1'} ne '') {
-       if ($cgiparams{'KEEPALIVE_1'} !~ /^[0-9]+$/) { 
+       if ($cgiparams{'KEEPALIVE_1'} !~ /^[0-9]+$/) {
            $errormessage = $Lang::tr{'invalid input for keepalive 1'};
         goto ADV_ERROR;
        }
     }
     if ($cgiparams{'KEEPALIVE_2'} ne ''){
-       if ($cgiparams{'KEEPALIVE_2'} !~ /^[0-9]+$/) { 
+       if ($cgiparams{'KEEPALIVE_2'} !~ /^[0-9]+$/) {
            $errormessage = $Lang::tr{'invalid input for keepalive 2'};
         goto ADV_ERROR;
        }
     }
     if ($cgiparams{'KEEPALIVE_2'} < ($cgiparams{'KEEPALIVE_1'} * 2)){
         $errormessage = $Lang::tr{'invalid input for keepalive 1:2'};
-        goto ADV_ERROR;        
+        goto ADV_ERROR;
     }
     &General::writehash("${General::swroot}/ovpn/settings", \%vpnsettings);
     &writeserverconf();#hier ok
@@ -936,38 +936,38 @@ my $ovsubnet =  "$ovsubnettemp[0].$ovsubnettemp[1].$ovsubnettemp[2]";
 my $tunmtu =  '';
 
 unless(-d "${General::swroot}/ovpn/n2nconf/"){mkdir "${General::swroot}/ovpn/n2nconf", 0755 or die "Unable to create dir $!";}
-unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}", 0770 or die "Unable to create dir $!";}   
+unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}", 0770 or die "Unable to create dir $!";}
 
   open(SERVERCONF,    ">${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Unable to open ${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf: $!";
-  
+
   flock SERVERCONF, 2;
-  print SERVERCONF "# IPFire n2n Open VPN Server Config by ummeegge und m.a.d\n"; 
-  print SERVERCONF "\n"; 
+  print SERVERCONF "# IPFire n2n Open VPN Server Config by ummeegge und m.a.d\n";
+  print SERVERCONF "\n";
   print SERVERCONF "# User Security\n";
   print SERVERCONF "user nobody\n";
   print SERVERCONF "group nobody\n";
   print SERVERCONF "persist-tun\n";
   print SERVERCONF "persist-key\n";
   print SERVERCONF "script-security 2\n";
-  print SERVERCONF "# IP/DNS for remote Server Gateway\n"; 
+  print SERVERCONF "# IP/DNS for remote Server Gateway\n";
 
   if ($cgiparams{'REMOTE'} ne '') {
   print SERVERCONF "remote $cgiparams{'REMOTE'}\n";
   }
 
   print SERVERCONF "float\n";
-  print SERVERCONF "# IP adresses of the VPN Subnet\n"; 
-  print SERVERCONF "ifconfig $ovsubnet.1 $ovsubnet.2\n"; 
-  print SERVERCONF "# Client Gateway Network\n"; 
+  print SERVERCONF "# IP adresses of the VPN Subnet\n";
+  print SERVERCONF "ifconfig $ovsubnet.1 $ovsubnet.2\n";
+  print SERVERCONF "# Client Gateway Network\n";
   print SERVERCONF "route $remsubnet[0] $remsubnet[1]\n";
   print SERVERCONF "up \"/etc/init.d/static-routes start\"\n";
-  print SERVERCONF "# tun Device\n"; 
-  print SERVERCONF "dev tun\n"; 
+  print SERVERCONF "# tun Device\n";
+  print SERVERCONF "dev tun\n";
   print SERVERCONF "#Logfile for statistics\n";
   print SERVERCONF "status-version 1\n";
   print SERVERCONF "status /var/run/openvpn/$cgiparams{'NAME'}-n2n 10\n";
-  print SERVERCONF "# Port and Protokol\n"; 
-  print SERVERCONF "port $cgiparams{'DEST_PORT'}\n"; 
+  print SERVERCONF "# Port and Protokol\n";
+  print SERVERCONF "port $cgiparams{'DEST_PORT'}\n";
 
   if ($cgiparams{'PROTOCOL'} eq 'tcp') {
   print SERVERCONF "proto tcp4-server\n";
@@ -975,23 +975,23 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
   if ($cgiparams{'MTU'} eq '') {$tunmtu = '1400'} else {$tunmtu = $cgiparams{'MTU'}};
   print SERVERCONF "tun-mtu $tunmtu\n";
   }
-  
+
   if ($cgiparams{'PROTOCOL'} eq 'udp') {
   print SERVERCONF "proto udp4\n";
   print SERVERCONF "# Paketsize\n";
   if ($cgiparams{'MTU'} eq '') {$tunmtu = '1500'} else {$tunmtu = $cgiparams{'MTU'}};
   print SERVERCONF "tun-mtu $tunmtu\n";
-  if ($cgiparams{'FRAGMENT'} ne '') {print SERVERCONF "fragment $cgiparams{'FRAGMENT'}\n";} 
+  if ($cgiparams{'FRAGMENT'} ne '') {print SERVERCONF "fragment $cgiparams{'FRAGMENT'}\n";}
   if ($cgiparams{'MSSFIX'} eq 'on') {print SERVERCONF "mssfix\n"; } else { print SERVERCONF "mssfix 0\n" };
   }
 
-  print SERVERCONF "# Auth. Server\n"; 
-  print SERVERCONF "tls-server\n"; 
-  print SERVERCONF "ca ${General::swroot}/ovpn/ca/cacert.pem\n"; 
-  print SERVERCONF "cert ${General::swroot}/ovpn/certs/servercert.pem\n"; 
-  print SERVERCONF "key ${General::swroot}/ovpn/certs/serverkey.pem\n"; 
+  print SERVERCONF "# Auth. Server\n";
+  print SERVERCONF "tls-server\n";
+  print SERVERCONF "ca ${General::swroot}/ovpn/ca/cacert.pem\n";
+  print SERVERCONF "cert ${General::swroot}/ovpn/certs/servercert.pem\n";
+  print SERVERCONF "key ${General::swroot}/ovpn/certs/serverkey.pem\n";
   print SERVERCONF "dh ${General::swroot}/ovpn/ca/$cgiparams{'DH_NAME'}\n";
-  print SERVERCONF "# Cipher\n"; 
+  print SERVERCONF "# Cipher\n";
   print SERVERCONF "cipher $cgiparams{'DCIPHER'}\n";
 
   # If GCM cipher is used, do not use --auth
@@ -1012,14 +1012,14 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
    print SERVERCONF "# Enable Compression\n";
    print SERVERCONF "comp-lzo\n";
      }
-  print SERVERCONF "# Debug Level\n"; 
-  print SERVERCONF "verb 3\n"; 
-  print SERVERCONF "# Tunnel check\n"; 
-  print SERVERCONF "keepalive 10 60\n"; 
-  print SERVERCONF "# Start as daemon\n"; 
-  print SERVERCONF "daemon $cgiparams{'NAME'}n2n\n"; 
-  print SERVERCONF "writepid /var/run/$cgiparams{'NAME'}n2n.pid\n"; 
-  print SERVERCONF "# Activate Management Interface and Port\n"; 
+  print SERVERCONF "# Debug Level\n";
+  print SERVERCONF "verb 3\n";
+  print SERVERCONF "# Tunnel check\n";
+  print SERVERCONF "keepalive 10 60\n";
+  print SERVERCONF "# Start as daemon\n";
+  print SERVERCONF "daemon $cgiparams{'NAME'}n2n\n";
+  print SERVERCONF "writepid /var/run/$cgiparams{'NAME'}n2n.pid\n";
+  print SERVERCONF "# Activate Management Interface and Port\n";
   if ($cgiparams{'OVPN_MGMT'} eq '') {print SERVERCONF "management localhost $cgiparams{'DEST_PORT'}\n"}
   else {print SERVERCONF "management localhost $cgiparams{'OVPN_MGMT'}\n"};
   close(SERVERCONF);
@@ -1037,36 +1037,36 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq 'net' &&
         my $ovsubnet =  "$ovsubnettemp[0].$ovsubnettemp[1].$ovsubnettemp[2]";
         my @remsubnet =  split(/\//,$cgiparams{'REMOTE_SUBNET'});
         my $tunmtu =  '';
-                   
+
 unless(-d "${General::swroot}/ovpn/n2nconf/"){mkdir "${General::swroot}/ovpn/n2nconf", 0755 or die "Unable to create dir $!";}
 unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}", 0770 or die "Unable to create dir $!";}
-  
+
   open(CLIENTCONF,    ">${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Unable to open ${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf: $!";
-  
+
   flock CLIENTCONF, 2;
   print CLIENTCONF "# IPFire rewritten n2n Open VPN Client Config by ummeegge und m.a.d\n";
-  print CLIENTCONF "#\n"; 
+  print CLIENTCONF "#\n";
   print CLIENTCONF "# User Security\n";
   print CLIENTCONF "user nobody\n";
   print CLIENTCONF "group nobody\n";
   print CLIENTCONF "persist-tun\n";
   print CLIENTCONF "persist-key\n";
   print CLIENTCONF "script-security 2\n";
-  print CLIENTCONF "# IP/DNS for remote Server Gateway\n"; 
+  print CLIENTCONF "# IP/DNS for remote Server Gateway\n";
   print CLIENTCONF "remote $cgiparams{'REMOTE'}\n";
   print CLIENTCONF "float\n";
-  print CLIENTCONF "# IP adresses of the VPN Subnet\n"; 
-  print CLIENTCONF "ifconfig $ovsubnet.2 $ovsubnet.1\n"; 
-  print CLIENTCONF "# Server Gateway Network\n"; 
-  print CLIENTCONF "route $remsubnet[0] $remsubnet[1]\n"; 
+  print CLIENTCONF "# IP adresses of the VPN Subnet\n";
+  print CLIENTCONF "ifconfig $ovsubnet.2 $ovsubnet.1\n";
+  print CLIENTCONF "# Server Gateway Network\n";
+  print CLIENTCONF "route $remsubnet[0] $remsubnet[1]\n";
   print CLIENTCONF "up \"/etc/init.d/static-routes start\"\n";
-  print CLIENTCONF "# tun Device\n"; 
-  print CLIENTCONF "dev tun\n"; 
+  print CLIENTCONF "# tun Device\n";
+  print CLIENTCONF "dev tun\n";
   print CLIENTCONF "#Logfile for statistics\n";
   print CLIENTCONF "status-version 1\n";
   print CLIENTCONF "status /var/run/openvpn/$cgiparams{'NAME'}-n2n 10\n";
-  print CLIENTCONF "# Port and Protokol\n"; 
-  print CLIENTCONF "port $cgiparams{'DEST_PORT'}\n"; 
+  print CLIENTCONF "# Port and Protokol\n";
+  print CLIENTCONF "port $cgiparams{'DEST_PORT'}\n";
 
   if ($cgiparams{'PROTOCOL'} eq 'tcp') {
   print CLIENTCONF "proto tcp4-client\n";
@@ -1074,7 +1074,7 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
   if ($cgiparams{'MTU'} eq '') {$tunmtu = '1400'} else {$tunmtu = $cgiparams{'MTU'}};
   print CLIENTCONF "tun-mtu $tunmtu\n";
   }
-  
+
   if ($cgiparams{'PROTOCOL'} eq 'udp') {
   print CLIENTCONF "proto udp4\n";
   print CLIENTCONF "# Paketsize\n";
@@ -1093,9 +1093,9 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
   } else {
        print CLIENTCONF "remote-cert-tls server\n";
   }
-  print CLIENTCONF "# Auth. Client\n"; 
-  print CLIENTCONF "tls-client\n"; 
-  print CLIENTCONF "# Cipher\n"; 
+  print CLIENTCONF "# Auth. Client\n";
+  print CLIENTCONF "tls-client\n";
+  print CLIENTCONF "# Cipher\n";
   print CLIENTCONF "cipher $cgiparams{'DCIPHER'}\n";
   print CLIENTCONF "pkcs12 ${General::swroot}/ovpn/certs/$cgiparams{'NAME'}.p12\r\n";
 
@@ -1117,14 +1117,14 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
    print CLIENTCONF "# Enable Compression\n";
    print CLIENTCONF "comp-lzo\n";
   }
-  print CLIENTCONF "# Debug Level\n"; 
-  print CLIENTCONF "verb 3\n"; 
-  print CLIENTCONF "# Tunnel check\n"; 
-  print CLIENTCONF "keepalive 10 60\n"; 
-  print CLIENTCONF "# Start as daemon\n"; 
+  print CLIENTCONF "# Debug Level\n";
+  print CLIENTCONF "verb 3\n";
+  print CLIENTCONF "# Tunnel check\n";
+  print CLIENTCONF "keepalive 10 60\n";
+  print CLIENTCONF "# Start as daemon\n";
   print CLIENTCONF "daemon $cgiparams{'NAME'}n2n\n";
-  print CLIENTCONF "writepid /var/run/$cgiparams{'NAME'}n2n.pid\n"; 
-  print CLIENTCONF "# Activate Management Interface and Port\n"; 
+  print CLIENTCONF "writepid /var/run/$cgiparams{'NAME'}n2n.pid\n";
+  print CLIENTCONF "# Activate Management Interface and Port\n";
   if ($cgiparams{'OVPN_MGMT'} eq '') {print CLIENTCONF "management localhost $cgiparams{'DEST_PORT'}\n"}
   else {print CLIENTCONF "management localhost $cgiparams{'OVPN_MGMT'}\n"};
   close(CLIENTCONF);
@@ -1151,26 +1151,26 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq '' && $cg
                        goto SETTINGS_ERROR;
     }
     my @tmpovpnsubnet = split("\/",$cgiparams{'DOVPN_SUBNET'});
-    
-    if (&General::IpInSubnet ( $netsettings{'RED_ADDRESS'}, 
+
+    if (&General::IpInSubnet ( $netsettings{'RED_ADDRESS'},
        $tmpovpnsubnet[0], $tmpovpnsubnet[1])) {
        $errormessage = "$Lang::tr{'ovpn subnet overlap'} IPFire RED Network $netsettings{'RED_ADDRESS'}";
        goto SETTINGS_ERROR;
     }
-    
-    if (&General::IpInSubnet ( $netsettings{'GREEN_ADDRESS'}, 
+
+    if (&General::IpInSubnet ( $netsettings{'GREEN_ADDRESS'},
        $tmpovpnsubnet[0], $tmpovpnsubnet[1])) {
         $errormessage = "$Lang::tr{'ovpn subnet overlap'} IPFire Green Network $netsettings{'GREEN_ADDRESS'}";
         goto SETTINGS_ERROR;
     }
 
-    if (&General::IpInSubnet ( $netsettings{'BLUE_ADDRESS'}, 
+    if (&General::IpInSubnet ( $netsettings{'BLUE_ADDRESS'},
        $tmpovpnsubnet[0], $tmpovpnsubnet[1])) {
        $errormessage = "$Lang::tr{'ovpn subnet overlap'} IPFire Blue Network $netsettings{'BLUE_ADDRESS'}";
        goto SETTINGS_ERROR;
     }
-    
-    if (&General::IpInSubnet ( $netsettings{'ORANGE_ADDRESS'}, 
+
+    if (&General::IpInSubnet ( $netsettings{'ORANGE_ADDRESS'},
        $tmpovpnsubnet[0], $tmpovpnsubnet[1])) {
        $errormessage = "$Lang::tr{'ovpn subnet overlap'} IPFire Orange Network $netsettings{'ORANGE_ADDRESS'}";
        goto SETTINGS_ERROR;
@@ -1181,10 +1181,10 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq '' && $cg
        chomp($_);
        my @tempalias = split(/\,/,$_);
        if ($tempalias[1] eq 'on') {
-           if (&General::IpInSubnet ($tempalias[0] , 
+           if (&General::IpInSubnet ($tempalias[0] ,
                $tmpovpnsubnet[0], $tmpovpnsubnet[1])) {
                $errormessage = "$Lang::tr{'ovpn subnet overlap'} IPFire alias entry $tempalias[0]";
-           }           
+           }
        }
     }
     close(ALIASES);
@@ -1199,7 +1199,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq '' && $cg
         $errormessage = $Lang::tr{'invalid mtu input'};
         goto SETTINGS_ERROR;
     }
-    
+
     unless (&General::validport($cgiparams{'DDEST_PORT'})) {
        $errormessage = $Lang::tr{'invalid port'};
        goto SETTINGS_ERROR;
@@ -1250,7 +1250,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq '' && $cg
          unlink("${General::swroot}/ovpn/enable");
   }
 
-#new settings for daemon    
+#new settings for daemon
     &General::writehash("${General::swroot}/ovpn/settings", \%vpnsettings);
     &writeserverconf();#hier ok
 SETTINGS_ERROR:
@@ -1671,7 +1671,7 @@ END
 
        exit(0);
     }
-    
+
 ###
 ### Download host certificate
 ###
@@ -1906,7 +1906,7 @@ END
 
        # refresh
        #system ('/bin/touch', "${General::swroot}/ovpn/gencanow");
-       
+
        # Create the CA certificate
        my $pid = open(OPENSSL, "|-");
        $SIG{ALRM} = sub { $errormessage = $Lang::tr{'broken pipe'}; goto ROOTCERT_ERROR;};
@@ -1971,7 +1971,7 @@ END
                goto ROOTCERT_ERROR;
            }
        }
-       
+
        # Sign the host certificate request
        # This system call is safe, because all argeuments are passed as an array.
        system('/usr/bin/openssl', 'ca', '-days', '999999',
@@ -2004,7 +2004,7 @@ END
            unlink ("${General::swroot}/ovpn/certs/serverkey.pem");
            unlink ("${General::swroot}/ovpn/certs/servercert.pem");
            unlink ("${General::swroot}/ovpn/ca/cacert.pem");
-           unlink ("${General::swroot}/ovpn/crls/cacrl.pem");      
+           unlink ("${General::swroot}/ovpn/crls/cacrl.pem");
            &cleanssldatabase();
            goto ROOTCERT_ERROR;
 #      } else {
@@ -2069,7 +2069,7 @@ END
            <td class='base' nowrap='nowrap'><input type='text' name='ROOTCERT_STATE' value='$cgiparams{'ROOTCERT_STATE'}' size='32' /></td>
            <td colspan='2'>&nbsp;</td></tr>
        <tr><td class='base'>$Lang::tr{'country'}:</td>
-           <td class='base'><select name='ROOTCERT_COUNTRY'> 
+           <td class='base'><select name='ROOTCERT_COUNTRY'>
 
 END
        ;
@@ -2093,7 +2093,7 @@ END
 
        <tr><td>&nbsp;</td>
            <td><input type='submit' name='ACTION' value='$Lang::tr{'generate root/host certificates'}' /></td>
-           <td>&nbsp;</td><td>&nbsp;</td></tr> 
+           <td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr><td class='base' colspan='4' align='left'>
            <img src='/blob.gif' valign='top' alt='*' />&nbsp;$Lang::tr{'required field'}</td></tr>
        <tr><td colspan='2'><br></td></tr>
@@ -2149,7 +2149,7 @@ END
 ###
 
 }elsif ($cgiparams{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
-    
+
     &General::readhash("${General::swroot}/ovpn/settings", \%vpnsettings);
     &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
     my $n2nactive = '';
@@ -2158,7 +2158,7 @@ END
     if(grep(/$confighash{$cgiparams{'KEY'}}[1]/, @ps)) {
        $n2nactive = "1";
     }
-    
+
     if ($confighash{$cgiparams{'KEY'}}) {
                if ($confighash{$cgiparams{'KEY'}}[0] eq 'off') {
                        $confighash{$cgiparams{'KEY'}}[0] = 'on';
@@ -2201,19 +2201,19 @@ END
 ###
 
 if ($confighash{$cgiparams{'KEY'}}[3] eq 'net'){
-        
+
         my $zipname = "$confighash{$cgiparams{'KEY'}}[1]-Client.zip";
         my $zippathname = "$zippath$zipname";
-        $clientovpn = "$confighash{$cgiparams{'KEY'}}[1].conf";  
+        $clientovpn = "$confighash{$cgiparams{'KEY'}}[1].conf";
         my @ovsubnettemp =  split(/\./,$confighash{$cgiparams{'KEY'}}[27]);
         my $ovsubnet =  "$ovsubnettemp[0].$ovsubnettemp[1].$ovsubnettemp[2]";
-        my $tunmtu = ''; 
+        my $tunmtu = '';
         my @remsubnet = split(/\//,$confighash{$cgiparams{'KEY'}}[8]);
         my $n2nfragment = '';
-        
+
     open(CLIENTCONF, ">$tempdir/$clientovpn") or die "Unable to open tempfile: $!";
     flock CLIENTCONF, 2;
-    
+
     my $zip = Archive::Zip->new();
    print CLIENTCONF "# IPFire n2n Open VPN Client Config by ummeegge und m.a.d\n";
    print CLIENTCONF "# \n";
@@ -2223,28 +2223,28 @@ if ($confighash{$cgiparams{'KEY'}}[3] eq 'net'){
    print CLIENTCONF "persist-tun\n";
    print CLIENTCONF "persist-key\n";
    print CLIENTCONF "script-security 2\n";
-   print CLIENTCONF "# IP/DNS for remote Server Gateway\n"; 
+   print CLIENTCONF "# IP/DNS for remote Server Gateway\n";
    print CLIENTCONF "remote $vpnsettings{'VPN_IP'}\n";
    print CLIENTCONF "float\n";
-   print CLIENTCONF "# IP adresses of the VPN Subnet\n"; 
-   print CLIENTCONF "ifconfig $ovsubnet.2 $ovsubnet.1\n"; 
-   print CLIENTCONF "# Server Gateway Network\n"; 
+   print CLIENTCONF "# IP adresses of the VPN Subnet\n";
+   print CLIENTCONF "ifconfig $ovsubnet.2 $ovsubnet.1\n";
+   print CLIENTCONF "# Server Gateway Network\n";
    print CLIENTCONF "route $remsubnet[0] $remsubnet[1]\n";
-   print CLIENTCONF "# tun Device\n"; 
-   print CLIENTCONF "dev tun\n"; 
+   print CLIENTCONF "# tun Device\n";
+   print CLIENTCONF "dev tun\n";
    print CLIENTCONF "#Logfile for statistics\n";
    print CLIENTCONF "status-version 1\n";
    print CLIENTCONF "status /var/run/openvpn/$cgiparams{'NAME'}-n2n 10\n";
-   print CLIENTCONF "# Port and Protokoll\n"; 
-   print CLIENTCONF "port $confighash{$cgiparams{'KEY'}}[29]\n"; 
-   
+   print CLIENTCONF "# Port and Protokoll\n";
+   print CLIENTCONF "port $confighash{$cgiparams{'KEY'}}[29]\n";
+
    if ($confighash{$cgiparams{'KEY'}}[28] eq 'tcp') {
    print CLIENTCONF "proto tcp4-client\n";
    print CLIENTCONF "# Packet size\n";
    if ($confighash{$cgiparams{'KEY'}}[31] eq '') {$tunmtu = '1400'} else {$tunmtu = $confighash{$cgiparams{'KEY'}}[31]};
    print CLIENTCONF "tun-mtu $tunmtu\n";
    }
-  
+
    if ($confighash{$cgiparams{'KEY'}}[28] eq 'udp') {
    print CLIENTCONF "proto udp4\n";
    print CLIENTCONF "# Paketsize\n";
@@ -2262,11 +2262,11 @@ if ($confighash{$cgiparams{'KEY'}}[3] eq 'net'){
    } else {
                print CLIENTCONF "remote-cert-tls server\n";
    }
-   print CLIENTCONF "# Auth. Client\n"; 
-   print CLIENTCONF "tls-client\n"; 
+   print CLIENTCONF "# Auth. Client\n";
+   print CLIENTCONF "tls-client\n";
    print CLIENTCONF "# Cipher\n";
    print CLIENTCONF "cipher $confighash{$cgiparams{'KEY'}}[40]\n";
-    if ($confighash{$cgiparams{'KEY'}}[4] eq 'cert' && -f "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1].p12") { 
+    if ($confighash{$cgiparams{'KEY'}}[4] eq 'cert' && -f "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1].p12") {
         print CLIENTCONF "pkcs12 ${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1].p12\r\n";
      $zip->addFile( "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1].p12", "$confighash{$cgiparams{'KEY'}}[1].p12") or die "Can't add file $confighash{$cgiparams{'KEY'}}[1].p12\n";
    }
@@ -2286,21 +2286,21 @@ if ($confighash{$cgiparams{'KEY'}}[3] eq 'net'){
    print CLIENTCONF "# Enable Compression\n";
    print CLIENTCONF "comp-lzo\n";
      }
-   print CLIENTCONF "# Debug Level\n"; 
-   print CLIENTCONF "verb 3\n"; 
-   print CLIENTCONF "# Tunnel check\n"; 
-   print CLIENTCONF "keepalive 10 60\n"; 
-   print CLIENTCONF "# Start as daemon\n"; 
-   print CLIENTCONF "daemon $confighash{$cgiparams{'KEY'}}[1]n2n\n"; 
-   print CLIENTCONF "writepid /var/run/$confighash{$cgiparams{'KEY'}}[1]n2n.pid\n"; 
-   print CLIENTCONF "# Activate Management Interface and Port\n"; 
+   print CLIENTCONF "# Debug Level\n";
+   print CLIENTCONF "verb 3\n";
+   print CLIENTCONF "# Tunnel check\n";
+   print CLIENTCONF "keepalive 10 60\n";
+   print CLIENTCONF "# Start as daemon\n";
+   print CLIENTCONF "daemon $confighash{$cgiparams{'KEY'}}[1]n2n\n";
+   print CLIENTCONF "writepid /var/run/$confighash{$cgiparams{'KEY'}}[1]n2n.pid\n";
+   print CLIENTCONF "# Activate Management Interface and Port\n";
    if ($confighash{$cgiparams{'KEY'}}[22] eq '') {print CLIENTCONF "management localhost $confighash{$cgiparams{'KEY'}}[29]\n"}
     else {print CLIENTCONF "management localhost $confighash{$cgiparams{'KEY'}}[22]\n"};
    print CLIENTCONF "# remsub $confighash{$cgiparams{'KEY'}}[11]\n";
-  
+
 
     close(CLIENTCONF);
-        
+
     $zip->addFile( "$tempdir/$clientovpn", $clientovpn) or die "Can't add file $clientovpn\n";
     my $status = $zip->writeToFileNamed($zippathname);
 
@@ -2320,12 +2320,12 @@ else
 ###
 # m.a.d net2net
 ###
-  
+
     open(CLIENTCONF, ">$tempdir/$clientovpn") or die "Unable to open tempfile: $!";
     flock CLIENTCONF, 2;
-    
+
     my $zip = Archive::Zip->new();
-    
+
     print CLIENTCONF "#OpenVPN Client conf\r\n";
     print CLIENTCONF "tls-client\r\n";
     print CLIENTCONF "client\r\n";
@@ -2336,29 +2336,29 @@ else
 
     if ( $vpnsettings{'ENABLED'} eq 'on'){
        print CLIENTCONF "remote $vpnsettings{'VPN_IP'} $vpnsettings{'DDEST_PORT'}\r\n";
-       if ( $vpnsettings{'ENABLED_BLUE'} eq 'on' && (&haveBlueNet())){ 
-           print CLIENTCONF "#Coment the above line and uncoment the next line, if you want to connect on the Blue interface\r\n";     
+       if ( $vpnsettings{'ENABLED_BLUE'} eq 'on' && (&haveBlueNet())){
+           print CLIENTCONF "#Coment the above line and uncoment the next line, if you want to connect on the Blue interface\r\n";
            print CLIENTCONF ";remote $netsettings{'BLUE_ADDRESS'} $vpnsettings{'DDEST_PORT'}\r\n";
        }
        if ( $vpnsettings{'ENABLED_ORANGE'} eq 'on' && (&haveOrangeNet())){
-           print CLIENTCONF "#Coment the above line and uncoment the next line, if you want to connect on the Orange interface\r\n";           
+           print CLIENTCONF "#Coment the above line and uncoment the next line, if you want to connect on the Orange interface\r\n";
            print CLIENTCONF ";remote $netsettings{'ORANGE_ADDRESS'} $vpnsettings{'DDEST_PORT'}\r\n";
        }
     } elsif ( $vpnsettings{'ENABLED_BLUE'} eq 'on' && (&haveBlueNet())){
        print CLIENTCONF "remote $netsettings{'BLUE_ADDRESS'} $vpnsettings{'DDEST_PORT'}\r\n";
        if ( $vpnsettings{'ENABLED_ORANGE'} eq 'on' && (&haveOrangeNet())){
-           print CLIENTCONF "#Coment the above line and uncoment the next line, if you want to connect on the Orange interface\r\n";           
+           print CLIENTCONF "#Coment the above line and uncoment the next line, if you want to connect on the Orange interface\r\n";
            print CLIENTCONF ";remote $netsettings{'ORANGE_ADDRESS'} $vpnsettings{'DDEST_PORT'}\r\n";
        }
     } elsif ( $vpnsettings{'ENABLED_ORANGE'} eq 'on' && (&haveOrangeNet())){
        print CLIENTCONF "remote $netsettings{'ORANGE_ADDRESS'} $vpnsettings{'DDEST_PORT'}\r\n";
     }
-                       
+
     my $file_crt = new File::Temp( UNLINK => 1 );
     my $file_key = new File::Temp( UNLINK => 1 );
     my $include_certs = 0;
 
-    if ($confighash{$cgiparams{'KEY'}}[4] eq 'cert' && -f "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1].p12") { 
+    if ($confighash{$cgiparams{'KEY'}}[4] eq 'cert' && -f "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1].p12") {
        if ($cgiparams{'MODE'} eq 'insecure') {
                $include_certs = 1;
 
@@ -2396,7 +2396,7 @@ else
        print CLIENTCONF "cert $confighash{$cgiparams{'KEY'}}[1]cert.pem\r\n";
        print CLIENTCONF "key $confighash{$cgiparams{'KEY'}}[1].key\r\n";
        $zip->addFile( "${General::swroot}/ovpn/ca/cacert.pem", "cacert.pem")  or die "Can't add file cacert.pem\n";
-       $zip->addFile( "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1]cert.pem", "$confighash{$cgiparams{'KEY'}}[1]cert.pem") or die "Can't add file $confighash{$cgiparams{'KEY'}}[1]cert.pem\n";    
+       $zip->addFile( "${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[1]cert.pem", "$confighash{$cgiparams{'KEY'}}[1]cert.pem") or die "Can't add file $confighash{$cgiparams{'KEY'}}[1]cert.pem\n";
     }
     print CLIENTCONF "cipher $vpnsettings{DCIPHER}\r\n";
        print CLIENTCONF "auth $vpnsettings{'DAUTH'}\r\n";
@@ -2493,7 +2493,7 @@ else
        close (LCC);
     }
     close(CLIENTCONF);
-        
+
     $zip->addFile( "$tempdir/$clientovpn", $clientovpn) or die "Can't add file $clientovpn\n";
     my $status = $zip->writeToFileNamed($zippathname);
 
@@ -2504,9 +2504,9 @@ else
     print @fileholder;
     exit (0);
    }
-   
-   
-   
+
+
+
 ###
 ### Remove connection
 ###
@@ -2548,7 +2548,7 @@ else
                {
                        unlink "${General::swroot}/ovpn/ccd/$confighash{$cgiparams{'KEY'}}[2]";
                }
-       
+
                &General::readhasharray("${General::swroot}/ovpn/ccdroute", \%ccdroutehash);
                foreach my $key (keys %ccdroutehash) {
                        if ($ccdroutehash{$key}[0] eq $confighash{$cgiparams{'KEY'}}[1]){
@@ -2556,7 +2556,7 @@ else
                        }
                }
                &General::writehasharray("${General::swroot}/ovpn/ccdroute", \%ccdroutehash);
-       
+
                &General::readhasharray("${General::swroot}/ovpn/ccdroute2", \%ccdroute2hash);
                foreach my $key (keys %ccdroute2hash) {
                        if ($ccdroute2hash{$key}[0] eq $confighash{$cgiparams{'KEY'}}[1]){
@@ -2699,10 +2699,10 @@ else
     my $disabled;
     &General::readhash("${General::swroot}/ovpn/settings", \%cgiparams);
     read_routepushfile;
-       
-       
+
+
 #    if ($cgiparams{'CLIENT2CLIENT'} eq '') {
-#      $cgiparams{'CLIENT2CLIENT'} =  'on';     
+#      $cgiparams{'CLIENT2CLIENT'} =  'on';
 #    }
 ADV_ERROR:
     if ($cgiparams{'MAX_CLIENTS'} eq '') {
@@ -2748,10 +2748,10 @@ ADV_ERROR:
     $selected{'LOG_VERB'}{'10'} = '';
     $selected{'LOG_VERB'}{'11'} = '';
     $selected{'LOG_VERB'}{$cgiparams{'LOG_VERB'}} = 'SELECTED';
-   
+
     &Header::showhttpheaders();
     &Header::openpage($Lang::tr{'status ovpn'}, 1, '');
-    &Header::openbigbox('100%', 'LEFT', '', $errormessage);    
+    &Header::openbigbox('100%', 'LEFT', '', $errormessage);
     if ($errormessage) {
        &Header::openbox('100%', 'LEFT', $Lang::tr{'error messages'});
        print "<class name='base'>$errormessage\n";
@@ -2767,23 +2767,23 @@ ADV_ERROR:
     </tr>
     <tr>
                <td width='25%'></td> <td width='20%'> </td><td width='25%'> </td><td width='30%'></td>
-    </tr>      
-    <tr>               
+    </tr>
+    <tr>
                <td class='base'>Domain</td>
         <td><input type='TEXT' name='DHCP_DOMAIN' value='$cgiparams{'DHCP_DOMAIN'}' size='30'  /></td>
     </tr>
-    <tr>       
+    <tr>
                <td class='base'>DNS</td>
                <td><input type='TEXT' name='DHCP_DNS' value='$cgiparams{'DHCP_DNS'}' size='30' /></td>
-    </tr>      
-    <tr>       
+    </tr>
+    <tr>
                <td class='base'>WINS</td>
                <td><input type='TEXT' name='DHCP_WINS' value='$cgiparams{'DHCP_WINS'}' size='30' /></td>
        </tr>
     <tr>
                <td colspan='4'><b>$Lang::tr{'ovpn routes push options'}</b></td>
     </tr>
-    <tr>       
+    <tr>
                <td class='base'>$Lang::tr{'ovpn routes push'}</td>
                <td colspan='2'>
                <textarea name='ROUTES_PUSH' cols='26' rows='6' wrap='off'>
@@ -2894,14 +2894,14 @@ print"  <br><b><font color='#990000'>$Lang::tr{'attention'}:</b></font><br>
     <td>&nbsp;</td>
     <td allign='center'><input type='submit' name='ACTION' value='$Lang::tr{'save-adv-options'}' disabled='disabled' /></td>
     <td allign='center'><input type='submit' name='ACTION' value='$Lang::tr{'cancel-adv-options'}' /></td>
-    <td>&nbsp;</td>    
+    <td>&nbsp;</td>
 </tr>
-</table>    
+</table>
 </form>
 END
-;              
-               
-               
+;
+
+
 }else{
 
        print<<END;
@@ -2910,25 +2910,25 @@ END
     <td>&nbsp;</td>
     <td allign='center'><input type='submit' name='ACTION' value='$Lang::tr{'save-adv-options'}' /></td>
     <td allign='center'><input type='submit' name='ACTION' value='$Lang::tr{'cancel-adv-options'}' /></td>
-    <td>&nbsp;</td>    
+    <td>&nbsp;</td>
 </tr>
-</table>    
+</table>
 </form>
 END
-;                                 
+;
 }
     &Header::closebox();
 #    print "<div align='center'><a href='/cgi-bin/ovpnmain.cgi'>$Lang::tr{'back'}</a></div>";
     &Header::closebigbox();
     &Header::closepage();
     exit(0);
-       
+
 
 # A.Marx CCD   Add,delete or edit CCD net
 
-} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'ccd net'} || 
-               $cgiparams{'ACTION'} eq $Lang::tr{'ccd add'} ||  
-               $cgiparams{'ACTION'} eq "kill" || 
+} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'ccd net'} ||
+               $cgiparams{'ACTION'} eq $Lang::tr{'ccd add'} ||
+               $cgiparams{'ACTION'} eq "kill" ||
                $cgiparams{'ACTION'} eq "edit" ||
                $cgiparams{'ACTION'} eq 'editsave'){
        &Header::showhttpheaders();
@@ -2938,14 +2938,14 @@ END
        if ($cgiparams{'ACTION'} eq "kill"){
                &delccdnet($cgiparams{'net'});
        }
-       
+
        if ($cgiparams{'ACTION'} eq 'editsave'){
                my ($a,$b) =split (/\|/,$cgiparams{'ccdname'});
                if ( $a ne $b){ &modccdnet($a,$b);}
                $cgiparams{'ccdname'}='';
                $cgiparams{'ccdsubnet'}='';
        }
-       
+
        if ($cgiparams{'ACTION'} eq $Lang::tr{'ccd add'}) {
                &addccdnet($cgiparams{'ccdname'},$cgiparams{'ccdsubnet'});
        }
@@ -2953,10 +2953,10 @@ END
            &Header::openbox('100%', 'LEFT', $Lang::tr{'error messages'});
            print "<class name='base'>$errormessage";
            print "&nbsp;</class>";
-           &Header::closebox();                
+           &Header::closebox();
        }
 if ($cgiparams{'ACTION'} eq "edit"){
-       
+
        &Header::openbox('100%', 'LEFT', $Lang::tr{'ccd modify'});
 
        print <<END;
@@ -2994,7 +2994,7 @@ else{
                <td colspan='4' align='right'><input type='hidden' name='ACTION' value='$Lang::tr{'ccd add'}' /><input type='submit' value='$Lang::tr{'add'}' /><input type='hidden' name='DOVPN_SUBNET' value='$cgiparams{'DOVPN_SUBNET'}'/></td></tr>
                </table></form>
 END
-       
+
        &Header::closebox();
 }
        &Header::openbox('100%', 'LEFT',$Lang::tr{'ccd net'} );
@@ -3002,7 +3002,7 @@ END
                print "<b>$Lang::tr{'attention'}:</b><br>";
                print "$Lang::tr{'ccd noaddnet'}<br><hr>";
        }
-       
+
     print <<END;
     <table width='100%' cellpadding='0' cellspacing='1'>
     <tr>
@@ -3010,8 +3010,8 @@ END
 END
 ;
 }
-       my %ccdconfhash=();     
-       &General::readhasharray("${General::swroot}/ovpn/ccd.conf", \%ccdconfhash);     
+       my %ccdconfhash=();
+       &General::readhasharray("${General::swroot}/ovpn/ccd.conf", \%ccdconfhash);
        my @ccdconf=();
        my $count=0;
        foreach my $key (sort { uc($ccdconfhash{$a}[0]) cmp uc($ccdconfhash{$b}[0]) } keys %ccdconfhash) {
@@ -3035,14 +3035,14 @@ END
                <input type='image' src='/images/delete.gif' align='middle' alt='$Lang::tr{'remove'}' title='$Lang::tr{'remove'}' /></form></td></tr>
 END
 ;
-       }       
+       }
        print "</table></form>";
        &Header::closebox();
        print "<div align='center'><a href='/cgi-bin/ovpnmain.cgi'>$Lang::tr{'back'}</a></div>";
        &Header::closebigbox();
        &Header::closepage();
        exit(0);
-       
+
 #END CCD
 
 ###
@@ -3056,7 +3056,7 @@ END
 
 #
 #      <td><b>$Lang::tr{'protocol'}</b></td>
-# protocol temp removed 
+# protocol temp removed
     print <<END;
     <table width='100%' cellpadding='2' cellspacing='0' class='tbl'>
     <tr>
@@ -3087,10 +3087,10 @@ END
        {
            chomp($line);
            if ( $line =~ /^Updated,(.+)/){
-               @match = split( /^Updated,(.+)/, $line); 
+               @match = split( /^Updated,(.+)/, $line);
                $status = $match[1];
            }
-#gian      
+#gian
            if ( $line =~ /^(.+),(\d+\.\d+\.\d+\.\d+\:\d+),(\d+),(\d+),(.+)/) {
                @match = split(m/^(.+),(\d+\.\d+\.\d+\.\d+\:\d+),(\d+),(\d+),(.+)/, $line);
                if ($match[1] ne "Common Name") {
@@ -3108,7 +3108,7 @@ END
                    my $flag_icon = &Location::Functions::get_flag_icon($ccode);
                    $users[$uid]{'Country'} = "<a href='country.cgi#$ccode'><img src='$flag_icon' border='0' align='absmiddle' alt='$ccode' title='$ccode' /></a>";
                    $uid++;
-               }    
+               }
            }
            if ( $line =~ /^(\d+\.\d+\.\d+\.\d+),(.+),(\d+\.\d+\.\d+\.\d+\:\d+),(.+)/) {
                @match = split(m/^(\d+\.\d+\.\d+\.\d+),(.+),(\d+\.\d+\.\d+\.\d+\:\d+),(.+)/, $line);
@@ -3141,7 +3141,7 @@ END
                                                print "<td align='left' $col>$users[$idx-1]{'LastRef'}</td>";
                        }
        }
-       
+
        print "</table>";
        print <<END;
        <table width='100%' border='0' cellpadding='2' cellspacing='0'>
@@ -3152,7 +3152,7 @@ END
        <tr><td align='center' >$Lang::tr{'the statistics were last updated at'} <b>$status</b></td></tr>
        </table>
 END
-;      
+;
        &Header::closebox();
        print "<div align='center'><a href='/cgi-bin/ovpnmain.cgi'>$Lang::tr{'back'}</a></div>";
        &Header::closebigbox();
@@ -3182,7 +3182,7 @@ END
 ###
 
 } elsif ($cgiparams{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
-    
+
     &General::readhash("${General::swroot}/ovpn/settings", \%vpnsettings);
     &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
 
@@ -3244,7 +3244,7 @@ if ( -s "${General::swroot}/ovpn/settings") {
                <td class='base'>$Lang::tr{'host to net vpn'}</td></tr>
            <tr><td><input type='radio' name='TYPE' value='net' /></td>
                <td class='base'>$Lang::tr{'net to net vpn'}</td></tr>
-               <tr><td><input type='radio' name='TYPE' value='net2net' /></td>         
+               <tr><td><input type='radio' name='TYPE' value='net2net' /></td>
                <td class='base'>$Lang::tr{'net to net vpn'} (Upload Client Package)</td></tr>
          <tr><td>&nbsp;</td><td class='base'><input type='file' name='FH' size='30'></td></tr>
          <tr><td>&nbsp;</td><td>Import Connection Name</td></tr>
@@ -3254,7 +3254,7 @@ if ( -s "${General::swroot}/ovpn/settings") {
            </form></table>
 END
        ;
-       
+
 
 } else {
        print <<END;
@@ -3288,11 +3288,11 @@ END
        my $uplp12name2 = '';
        my @rem_subnet;
        my @rem_subnet2;
-       my @tmposupnet3;        
+       my @tmposupnet3;
        my $key;
        my @n2nname;
 
-       &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);    
+       &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
 
        # Check if a file is uploaded
        unless (ref ($cgiparams{'FH'})) {
@@ -3311,7 +3311,7 @@ END
        my $zip = Archive::Zip->new();
        my $zipName = $filename;
        my $status = $zip->read( $zipName );
-       if ($status != AZ_OK) {   
+       if ($status != AZ_OK) {
                $errormessage = "Read of $zipName failed\n";
                goto N2N_ERROR;
        }
@@ -3332,7 +3332,7 @@ END
                        }
                        if ( $_ =~ /.p12$/){
                                $uplp12name = $_;
-                       }                       
+                       }
                }
                if (($uplconffilename eq '') || ($uplp12name eq '')){
                        $errormessage = "Either no *.conf or no *.p12 file found\n";
@@ -3352,11 +3352,11 @@ END
 ###
 # m.a.d net2net
 ###
-  
+
  if ($cgiparams{'n2nname'} ne ''){
 
-  $uplconffilename2 = "$cgiparams{'n2nname'}.conf"; 
-  $uplp12name2 = "$cgiparams{'n2nname'}.p12"; 
+  $uplconffilename2 = "$cgiparams{'n2nname'}.conf";
+  $uplp12name2 = "$cgiparams{'n2nname'}.p12";
   $n2nname[0] = $cgiparams{'n2nname'};
   my @n2nname2 = split(/\./,$uplconffilename);
   $n2nname2[0] =~ s/\n|\r//g;
@@ -3379,9 +3379,9 @@ END
     $uplp12name2 = $uplp12name;
     @n2nname = split(/\./,$uplconffilename);
     $n2nname[0] =~ s/\n|\r//g;
-   } 
+   }
     unless(-d "${General::swroot}/ovpn/n2nconf/"){mkdir "${General::swroot}/ovpn/n2nconf", 0755 or die "Unable to create dir $!";}
-    unless(-d "${General::swroot}/ovpn/n2nconf/$n2nname[0]"){mkdir "${General::swroot}/ovpn/n2nconf/$n2nname[0]", 0770 or die "Unable to create dir $!";}   
+    unless(-d "${General::swroot}/ovpn/n2nconf/$n2nname[0]"){mkdir "${General::swroot}/ovpn/n2nconf/$n2nname[0]", 0770 or die "Unable to create dir $!";}
 
        #Add collectd settings to configfile
        open(FILE, ">> $tempdir/$uplconffilename") or die 'Unable to open config file.';
@@ -3395,7 +3395,7 @@ END
            unlink ($filename);
            goto N2N_ERROR;
        }
-       
+
        unless(move("$tempdir/$uplp12name", "${General::swroot}/ovpn/certs/$uplp12name2")) {
            $errormessage = "$Lang::tr{'certificate file move failed'}: $!";
            unlink ($filename);
@@ -3403,7 +3403,7 @@ END
        }
 
        chmod 0600, "${General::swroot}/ovpn/certs/$uplp12name";
-       
+
 my $complzoactive;
 my $mssfixactive;
 my $authactive;
@@ -3413,7 +3413,7 @@ my @n2nproto = split(/-/, $n2nproto2[1]);
 my @n2nport = split(/ /, (grep { /^port/ } @firen2nconf)[0]);
 my @n2ntunmtu = split(/ /, (grep { /^tun-mtu/ } @firen2nconf)[0]);
 my @n2ncomplzo = grep { /^comp-lzo/ } @firen2nconf;
-if ($n2ncomplzo[0] =~ /comp-lzo/){$complzoactive = "on";} else {$complzoactive = "off";}       
+if ($n2ncomplzo[0] =~ /comp-lzo/){$complzoactive = "on";} else {$complzoactive = "off";}
 my @n2nmssfix  = grep { /^mssfix/ } @firen2nconf;
 if ($n2nmssfix[0] =~ /mssfix/){$mssfixactive = "on";} else {$mssfixactive = "off";}
 #my @n2nmssfix = split(/ /, (grep { /^mssfix/ } @firen2nconf)[0]);
@@ -3462,7 +3462,7 @@ chomp ($mssfixactive);
                        unlink ("${General::swroot}/ovpn/n2nconf/$n2nname[0]/$n2nname[0].conf") or die "Removing Configfile fail: $!";
            unlink ("${General::swroot}/ovpn/certs/$n2nname[0].p12") or die "Removing Certfile fail: $!";
       rmdir ("${General::swroot}/ovpn/n2nconf/$n2nname[0]") || die "Removing Directory fail: $!";
-                       goto N2N_ERROR;                 
+                       goto N2N_ERROR;
                }
        }
 
@@ -3476,7 +3476,7 @@ foreach my $dkey (keys %confighash) {
                        unlink ("${General::swroot}/ovpn/n2nconf/$n2nname[0]/$n2nname[0].conf") or die "Removing Configfile fail: $!";
            unlink ("${General::swroot}/ovpn/certs/$n2nname[0].p12") or die "Removing Certfile fail: $!";
       rmdir ("${General::swroot}/ovpn/n2nconf/$n2nname[0]") || die "Removing Directory fail: $!";
-                       goto N2N_ERROR;                 
+                       goto N2N_ERROR;
                }
        }
 
@@ -3490,25 +3490,25 @@ foreach my $dkey (keys %confighash) {
                        unlink ("${General::swroot}/ovpn/n2nconf/$n2nname[0]/$n2nname[0].conf") or die "Removing Configfile fail: $!";
            unlink ("${General::swroot}/ovpn/certs/$n2nname[0].p12") or die "Removing Certfile fail: $!";
       rmdir ("${General::swroot}/ovpn/n2nconf/$n2nname[0]") || die "Removing Directory fail: $!";
-                       goto N2N_ERROR;                 
+                       goto N2N_ERROR;
                }
        }
-       
-       
-       
+
+
+
   $key = &General::findhasharraykey (\%confighash);
 
        foreach my $i (0 .. 42) { $confighash{$key}[$i] = "";}
 
        $confighash{$key}[0] = 'off';
        $confighash{$key}[1] = $n2nname[0];
-       $confighash{$key}[2] = $n2nname[0];     
+       $confighash{$key}[2] = $n2nname[0];
        $confighash{$key}[3] = 'net';
-       $confighash{$key}[4] = 'cert';  
-       $confighash{$key}[6] = 'client';                
+       $confighash{$key}[4] = 'cert';
+       $confighash{$key}[6] = 'client';
        $confighash{$key}[8] =  $n2nlocalsub[2];
        $confighash{$key}[10] = $n2nremote[1];
-       $confighash{$key}[11] = "$n2nremsub[1]/$n2nremsub[2]";          
+       $confighash{$key}[11] = "$n2nremsub[1]/$n2nremsub[2]";
        $confighash{$key}[22] = $n2nmgmt[2];
        $confighash{$key}[23] = $mssfixactive;
        $confighash{$key}[24] = $n2nfragment[1];
@@ -3524,9 +3524,9 @@ foreach my $dkey (keys %confighash) {
        $confighash{$key}[41] = 'disabled';
 
   &General::writehasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
+
   N2N_ERROR:
-               
+
        &Header::showhttpheaders();
        &Header::openpage('Validate imported configuration', 1, '');
        &Header::openbigbox('100%', 'LEFT', '', $errormessage);
@@ -3534,10 +3534,10 @@ foreach my $dkey (keys %confighash) {
            &Header::openbox('100%', 'LEFT', $Lang::tr{'error messages'});
            print "<class name='base'>$errormessage";
            print "&nbsp;</class>";
-           &Header::closebox();                
+           &Header::closebox();
 
-       } else 
-  {            
+       } else
+  {
                &Header::openbox('100%', 'LEFT', 'import ipfire net2net config');
        }
        if ($errormessage eq ''){
@@ -3546,8 +3546,8 @@ foreach my $dkey (keys %confighash) {
                <table width='100%'>
                <tr><td width='25%'>&nbsp;</td><td width='25%'>&nbsp;</td></tr>
     <tr><td class='boldbase'>$Lang::tr{'name'}:</td><td><b>$n2nname[0]</b></td></tr>
-    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>    
-               <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'Act as'}</td><td><b>$confighash{$key}[6]</b></td></tr>                                                              
+    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
+               <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'Act as'}</td><td><b>$confighash{$key}[6]</b></td></tr>
                <tr><td class='boldbase' nowrap='nowrap'>Remote Host </td><td><b>$confighash{$key}[10]</b></td></tr>
                <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'local subnet'}</td><td><b>$confighash{$key}[8]</b></td></tr>
                <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'remote subnet'}:</td><td><b>$confighash{$key}[11]</b></td></tr>
@@ -3561,21 +3561,21 @@ foreach my $dkey (keys %confighash) {
                <tr><td class='boldbase' nowrap='nowrap'>Management Port </td><td><b>$confighash{$key}[22]</b></td></tr>
                <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'ovpn tls auth'}:</td><td><b>$confighash{$key}[39]</b></td></tr>
                <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'cipher'}</td><td><b>$confighash{$key}[40]</b></td></tr>
-               <tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
+               <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
     </table>
 END
-;      
+;
                &Header::closebox();
        }
 
        if ($errormessage) {
                print "<div align='center'><a href='/cgi-bin/ovpnmain.cgi'>$Lang::tr{'back'}</a></div>";
-       } else {        
-               print "<div align='center'><form method='post' ENCTYPE='multipart/form-data'><input type='submit' name='ACTION' value='$Lang::tr{'add'}' />";           
+       } else {
+               print "<div align='center'><form method='post' ENCTYPE='multipart/form-data'><input type='submit' name='ACTION' value='$Lang::tr{'add'}' />";
                print "<input type='hidden' name='TYPE' value='net2netakn' />";
-               print "<input type='hidden' name='KEY' value='$key' />";                        
+               print "<input type='hidden' name='KEY' value='$key' />";
                print "<input type='submit' name='ACTION' value='$Lang::tr{'cancel'}' /></div></form>";
-       }       
+       }
        &Header::closebigbox();
        &Header::closepage();
        exit(0);
@@ -3592,7 +3592,7 @@ END
 ###
 
   }  elsif (($cgiparams{'ACTION'} eq $Lang::tr{'cancel'}) && ($cgiparams{'TYPE'} eq 'net2netakn')){
-     
+
      &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
 
 if ($confighash{$cgiparams{'KEY'}}) {
@@ -3603,12 +3603,12 @@ if ($confighash{$cgiparams{'KEY'}}) {
      unlink ($conffile) or die "Removing $conffile fail: $!";
      rmdir ("${General::swroot}/ovpn/n2nconf/$confighash{$cgiparams{'KEY'}}[1]") || die "Kann Verzeichnis nicht loeschen: $!";
      delete $confighash{$cgiparams{'KEY'}};
-    &General::writehasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);      
+    &General::writehasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
 
      } else {
                $errormessage = $Lang::tr{'invalid key'};
-   }   
-    
+   }
+
 
 ###
 # m.a.d net2net
@@ -3621,7 +3621,7 @@ if ($confighash{$cgiparams{'KEY'}}) {
 } elsif (($cgiparams{'ACTION'} eq $Lang::tr{'add'}) ||
         ($cgiparams{'ACTION'} eq $Lang::tr{'edit'}) ||
         ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'ADVANCED'} eq '')) {
-           
+
     &General::readhash("${General::swroot}/ovpn/settings", \%vpnsettings);
     &General::readhasharray("${General::swroot}/ovpn/caconfig", \%cahash);
     &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
@@ -3662,7 +3662,7 @@ if ($confighash{$cgiparams{'KEY'}}) {
                $cgiparams{'TLSAUTH'}           = $confighash{$cgiparams{'KEY'}}[41];
        } elsif ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) {
        $cgiparams{'REMARK'} = &Header::cleanhtml($cgiparams{'REMARK'});
-       
+
 #A.Marx CCD check iroute field and convert it to decimal
 if ($cgiparams{'TYPE'} eq 'host') {
        my @temp=();
@@ -3687,7 +3687,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
                my $val=0;
                foreach $val (@temp){
                        chomp($val);
-                       $val=~s/\s*$//g; 
+                       $val=~s/\s*$//g;
                        #check if iroute exists in ccdroute or if new iroute is part of an existing one
                        foreach my $key (keys %ccdroutehash) {
                                foreach my $oldiroute ( 1 .. $#{$ccdroutehash{$key}}){
@@ -3701,8 +3701,8 @@ if ($cgiparams{'TYPE'} eq 'host') {
                                                if (&General::IpInSubnet ($ip1,$ip2,$cidr2)){
                                                        $errormessage=$errormessage.$Lang::tr{'ccd err irouteexist'};
                                                        goto VPNCONF_ERROR;
-                                               } 
-                                                                       
+                                               }
+
                                }
                        }
                        if (!&General::validipandmask($val)){
@@ -3713,9 +3713,9 @@ if ($cgiparams{'TYPE'} eq 'host') {
                                $ip=&General::getnetworkip($ip,&General::iporsubtocidr($cidr));
                                $cidr=&General::iporsubtodec($cidr);
                                $ccdroutehash{$keypoint}[$i] = $ip."/".$cidr;
-                       
+
                        }
-                                                                                                                                       
+
                        #check for existing network IP's
                        if (&General::IpInSubnet ($ip,$netsettings{GREEN_NETADDRESS},$netsettings{GREEN_NETMASK}) && $netsettings{GREEN_NETADDRESS} ne '0.0.0.0')
                        {
@@ -3734,7 +3734,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
                                $errormessage=$Lang::tr{'ccd err orange'};
                                goto VPNCONF_ERROR;
                        }
-                                               
+
                        if (&General::validipandmask($val)){
                                $ccdroutehash{$keypoint}[$i] = $ip."/".$cidr;
                        }else{
@@ -3753,7 +3753,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
                                &General::writehasharray("${General::swroot}/ovpn/ccdroute", \%ccdroutehash);
                                &writeserverconf;
                        }
-               }       
+               }
        }
        undef @temp;
        #check route field and convert it to decimal
@@ -3778,7 +3778,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
        &General::readhash("${General::swroot}/ethernet/settings", \%ownnet);
        foreach $val (@temp){
                chomp($val);
-               $val=~s/\s*$//g; 
+               $val=~s/\s*$//g;
                if ($val eq $Lang::tr{'green'})
                {
                        $val=$ownnet{GREEN_NETADDRESS}."/".$ownnet{GREEN_NETMASK};
@@ -3792,9 +3792,9 @@ if ($cgiparams{'TYPE'} eq 'host') {
                        $val=$ownnet{ORANGE_NETADDRESS}."/".$ownnet{ORANGE_NETMASK};
                }
                my ($ip,$cidr) = split (/\//, $val);
-               
+
                if ($val ne $Lang::tr{'ccd none'})
-               {       
+               {
                        if (! &check_routes_push($val)){$errormessage=$errormessage."Route $val ".$Lang::tr{'ccd err routeovpn2'}." ($val)";goto VPNCONF_ERROR;}
                        if (! &check_ccdroute($val)){$errormessage=$errormessage."<br>Route $val ".$Lang::tr{'ccd err inuse'}." ($val)" ;goto VPNCONF_ERROR;}
                        if (! &check_ccdconf($val)){$errormessage=$errormessage."<br>Route $val ".$Lang::tr{'ccd err routeovpn'}." ($val)";goto VPNCONF_ERROR;}
@@ -3809,7 +3809,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
                        $ccdroute2hash{$keypoint}[$i]='';
                }
                $i++;
-       }       
+       }
        &General::writehasharray("${General::swroot}/ovpn/ccdroute2", \%ccdroute2hash);
 
        #check dns1 ip
@@ -3831,7 +3831,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
 
 #CCD End
 
-       
+
        if ($cgiparams{'TYPE'} !~ /^(host|net)$/) {
                $errormessage = $Lang::tr{'connection type is invalid'};
                if ($cgiparams{'TYPE'} eq 'net') {
@@ -3879,7 +3879,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                        $errormessage = $Lang::tr{'openvpn destination port used'};
                        unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
-      goto VPNCONF_ERROR;                      
+      goto VPNCONF_ERROR;
                }
     #Bugfix 10357
     foreach my $key (sort keys %confighash){
@@ -3887,14 +3887,14 @@ if ($cgiparams{'TYPE'} eq 'net') {
                        $errormessage = $Lang::tr{'openvpn destination port used'};
                        unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
-      goto VPNCONF_ERROR;      
+      goto VPNCONF_ERROR;
                }
        }
     if ($cgiparams{'DEST_PORT'} eq  '') {
                        $errormessage = $Lang::tr{'invalid port'};
                        unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
-      goto VPNCONF_ERROR;                      
+      goto VPNCONF_ERROR;
                }
 
     # Check if the input for the transfer net is valid.
@@ -3909,7 +3909,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                        $errormessage = $Lang::tr{'openvpn subnet is used'};
                        unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
-                       goto VPNCONF_ERROR;                     
+                       goto VPNCONF_ERROR;
                }
 
          if (($cgiparams{'PROTOCOL'} eq 'tcp') && ($cgiparams{'MSSFIX'} eq 'on')) {
@@ -3918,7 +3918,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
            goto VPNCONF_ERROR;
     }
-     
+
     if (($cgiparams{'PROTOCOL'} eq 'tcp') && ($cgiparams{'FRAGMENT'} ne '')) {
            $errormessage = $Lang::tr{'openvpn fragment allowed with udp'};
            unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
@@ -3931,22 +3931,22 @@ if ($cgiparams{'TYPE'} eq 'net') {
                  unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
                  goto VPNCONF_ERROR;
-               } 
-    
+               }
+
     if ( &validdotmask ($cgiparams{'OVPN_SUBNET'}))  {
                  $errormessage = $Lang::tr{'openvpn prefix openvpn subnet'};
                  unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
                  goto VPNCONF_ERROR;
-               } 
-    
+               }
+
     if ( &validdotmask ($cgiparams{'REMOTE_SUBNET'}))  {
                  $errormessage = $Lang::tr{'openvpn prefix remote subnet'};
                  unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
            rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
                  goto VPNCONF_ERROR;
                }
-       
+
        if ($cgiparams{'DEST_PORT'} <= 1023) {
                $errormessage = $Lang::tr{'ovpn port in root range'};
                  unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
@@ -3955,9 +3955,9 @@ if ($cgiparams{'TYPE'} eq 'net') {
                }
 
        if ($cgiparams{'OVPN_MGMT'} eq '') {
-               $cgiparams{'OVPN_MGMT'} = $cgiparams{'DEST_PORT'};              
+               $cgiparams{'OVPN_MGMT'} = $cgiparams{'DEST_PORT'};
                }
-       
+
        if ($cgiparams{'OVPN_MGMT'} <= 1023) {
                $errormessage = $Lang::tr{'ovpn mgmt in root range'};
                  unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
@@ -4023,7 +4023,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
        if ($cgiparams{'TYPE'} ne 'host') {
             unless (&General::validipandmask($cgiparams{'LOCAL_SUBNET'})) {
-                   $errormessage = $Lang::tr{'local subnet is invalid'}; 
+                   $errormessage = $Lang::tr{'local subnet is invalid'};
                    if ($cgiparams{'TYPE'} eq 'net') {
               unlink ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}/$cgiparams{'NAME'}.conf") or die "Removing Configfile fail: $!";
                    rmdir ("${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}") || die "Removing Directory fail: $!";
@@ -4033,8 +4033,8 @@ if ($cgiparams{'TYPE'} eq 'net') {
        # Check if there is no other entry without IP-address and PSK
        if ($cgiparams{'REMOTE'} eq '') {
            foreach my $key (keys %confighash) {
-               if(($cgiparams{'KEY'} ne $key) && 
-                  ($confighash{$key}[4] eq 'psk' || $cgiparams{'AUTH'} eq 'psk') && 
+               if(($cgiparams{'KEY'} ne $key) &&
+                  ($confighash{$key}[4] eq 'psk' || $cgiparams{'AUTH'} eq 'psk') &&
                    $confighash{$key}[10] eq '') {
                        $errormessage = $Lang::tr{'you can only define one roadwarrior connection when using pre-shared key authentication'};
                        goto VPNCONF_ERROR;
@@ -4125,7 +4125,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                        last;
                }
            }
-               
+
            $cgiparams{'CERT_NAME'} = $temp;
            $cgiparams{'CERT_NAME'} =~ s/,//g;
            $cgiparams{'CERT_NAME'} =~ s/\'//g;
@@ -4246,7 +4246,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                    $errormessage = $Lang::tr{'password too short'};
                    goto VPNCONF_ERROR;
                }
-           }   
+           }
            if ($cgiparams{'CERT_PASS1'} ne $cgiparams{'CERT_PASS2'}) {
                $errormessage = $Lang::tr{'passwords do not match'};
                goto VPNCONF_ERROR;
@@ -4311,7 +4311,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                    goto VPNCONF_ERROR;
                }
            }
-       
+
            # Sign the host certificate request
            # The system call is safe, because all arguments are passed as an array.
            system('/usr/bin/openssl', 'ca', '-days', "$cgiparams{'DAYS_VALID'}",
@@ -4333,12 +4333,12 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
            # Create the pkcs12 file
            # The system call is safe, because all arguments are passed as an array.
-           system('/usr/bin/openssl', 'pkcs12', '-export', 
+           system('/usr/bin/openssl', 'pkcs12', '-export',
                '-inkey', "${General::swroot}/ovpn/certs/$cgiparams{'NAME'}key.pem",
                '-in', "${General::swroot}/ovpn/certs/$cgiparams{'NAME'}cert.pem",
                '-name', $cgiparams{'NAME'},
                '-passout', "pass:$cgiparams{'CERT_PASS1'}",
-               '-certfile', "${General::swroot}/ovpn/ca/cacert.pem", 
+               '-certfile', "${General::swroot}/ovpn/ca/cacert.pem",
                '-caname', "$vpnsettings{'ROOTCERT_ORGANIZATION'} CA",
                '-out', "${General::swroot}/ovpn/certs/$cgiparams{'NAME'}.p12");
            if ($?) {
@@ -4369,7 +4369,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
     # Save the config
        my $key = $cgiparams{'KEY'};
-       
+
        if (! $key) {
            $key = &General::findhasharraykey (\%confighash);
            foreach my $i (0 .. 43) { $confighash{$key}[$i] = "";}
@@ -4379,7 +4379,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
        if ((! $cgiparams{'KEY'}) && $cgiparams{'AUTH'} ne 'psk') {
            $confighash{$key}[2]        = $cgiparams{'CERT_NAME'};
        }
-       
+
        $confighash{$key}[3]            = $cgiparams{'TYPE'};
        if ($cgiparams{'AUTH'} eq 'psk') {
            $confighash{$key}[4]        = 'psk';
@@ -4402,7 +4402,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
        $confighash{$key}[24]           = $cgiparams{'FRAGMENT'};
        $confighash{$key}[25]           = $cgiparams{'REMARK'};
        $confighash{$key}[26]           = $cgiparams{'INTERFACE'};
-# new fields   
+# new fields
        $confighash{$key}[27]           = $cgiparams{'OVPN_SUBNET'};
        $confighash{$key}[28]           = $cgiparams{'PROTOCOL'};
        $confighash{$key}[29]           = $cgiparams{'DEST_PORT'};
@@ -4423,9 +4423,9 @@ if ($cgiparams{'TYPE'} eq 'net') {
        }
 
        &General::writehasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
-       
+
        if ($cgiparams{'CHECK1'} ){
-               
+
                my ($ccdip,$ccdsub)=split "/",$cgiparams{$name};
                my ($a,$b,$c,$d) = split (/\./,$ccdip);
                        if ( -e "${General::swroot}/ovpn/ccd/$confighash{$key}[2]"){
@@ -4495,12 +4495,12 @@ if ($cgiparams{'TYPE'} eq 'net') {
 ###
 # m.a.d n2n begin
 ###
-       
+
        if ($cgiparams{'TYPE'} eq 'net') {
-       
+
                if (-e "/var/run/$confighash{$key}[1]n2n.pid") {
                        &General::system("/usr/local/bin/openvpnctrl", "-kn2n", "$confighash{$cgiparams{'KEY'}}[1]");
-       
+
                        &General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
                        my $key = $cgiparams{'KEY'};
                        if (! $key) {
@@ -4512,14 +4512,14 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
                        $confighash{$key}[0] = 'on';
                        &General::writehasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash);
-  
+
                        &General::system("/usr/local/bin/openvpnctrl", "-sn2n", "$confighash{$cgiparams{'KEY'}}[1]");
                }
        }
 
 ###
 # m.a.d n2n end
-###    
+###
 
        if ($cgiparams{'EDIT_ADVANCED'} eq 'on') {
            $cgiparams{'KEY'} = $key;
@@ -4530,13 +4530,13 @@ if ($cgiparams{'TYPE'} eq 'net') {
         $cgiparams{'ENABLED'} = 'on';
 ###
 # m.a.d n2n begin
-###    
+###
         $cgiparams{'MSSFIX'} = 'on';
         $cgiparams{'FRAGMENT'} = '1300';
        $cgiparams{'DAUTH'} = 'SHA512';
 ###
 # m.a.d n2n end
-###    
+###
         $cgiparams{'SIDE'} = 'left';
        if ( ! -f "${General::swroot}/ovpn/ca/cakey.pem" ) {
            $cgiparams{'AUTH'} = 'psk';
@@ -4572,7 +4572,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
     $selected{'SIDE'}{'server'} = '';
     $selected{'SIDE'}{'client'} = '';
     $selected{'SIDE'}{$cgiparams{'SIDE'}} = 'SELECTED';
-    
+
     $selected{'PROTOCOL'}{'udp'} = '';
     $selected{'PROTOCOL'}{'tcp'} = '';
     $selected{'PROTOCOL'}{$cgiparams{'PROTOCOL'}} = 'SELECTED';
@@ -4585,7 +4585,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
     $checked{'AUTH'}{$cgiparams{'AUTH'}} = 'CHECKED';
 
     $selected{'INTERFACE'}{$cgiparams{'INTERFACE'}} = 'SELECTED';
-    
+
     $checked{'COMPLZO'}{'off'} = '';
     $checked{'COMPLZO'}{'on'} = '';
     $checked{'COMPLZO'}{$cgiparams{'COMPLZO'}} = 'CHECKED';
@@ -4656,7 +4656,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
        print "<table width='100%'  border='0'>\n";
 
        print "<tr><td width='14%' class='boldbase'>$Lang::tr{'name'}:&nbsp;<img src='/blob.gif' alt='*' /></td>";
-       
+
        if ($cgiparams{'TYPE'} eq 'host') {
            if ($cgiparams{'KEY'}) {
                print "<td width='35%' class='base'><input type='hidden' name='NAME' value='$cgiparams{'NAME'}' />$cgiparams{'NAME'}</td>";
@@ -4691,7 +4691,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
            print <<END;
                    <td width='25%'>&nbsp;</td>
-                   <td width='25%'>&nbsp;</td></tr>    
+                   <td width='25%'>&nbsp;</td></tr>
        <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'Act as'}</td>
                <td><select name='SIDE'>
                                <option value='server' $selected{'SIDE'}{'server'}>$Lang::tr{'openvpn server'}</option>
@@ -4718,7 +4718,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                        <option value='udp' $selected{'PROTOCOL'}{'udp'}>UDP</option>
                        <option value='tcp' $selected{'PROTOCOL'}{'tcp'}>TCP</option></select></td>
        </tr>
-       
+
        <tr>
                <td class='boldbase'>$Lang::tr{'destination port'}:&nbsp;<img src='/blob.gif' alt='*' /></td>
                <td><input type='TEXT' name='DEST_PORT' value='$cgiparams{'DEST_PORT'}' size='5' /></td>
@@ -4728,7 +4728,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
        </tr>
 
        <tr><td colspan=4><hr /></td></tr><tr>
-       
+
        <tr>
                <td class'base'><b>$Lang::tr{'MTU settings'}</b></td>
        </tr>
@@ -4811,14 +4811,14 @@ END
 #jumper
        print "<tr><td class='boldbase'>$Lang::tr{'remark title'}</td>";
        print "<td colspan='3'><input type='text' name='REMARK' value='$cgiparams{'REMARK'}' size='55' maxlength='50' /></td></tr></table>";
-       
+
        if ($cgiparams{'TYPE'} eq 'host') {
       print "<tr><td>$Lang::tr{'enabled'} <input type='checkbox' name='ENABLED' $checked{'ENABLED'}{'on'} /></td>";
-    }  
+    }
 
                print"</tr></table><br><br>";
-#A.Marx CCD new client         
-if ($cgiparams{'TYPE'} eq 'host') {    
+#A.Marx CCD new client
+if ($cgiparams{'TYPE'} eq 'host') {
            print "<table border='0' width='100%' cellspacing='1' cellpadding='0'><tr><td colspan='3'><hr><br><b>$Lang::tr{'ccd choose net'}</td></tr><tr><td height='20' colspan='3'></td></tr>";
            my %vpnnet=();
            my $vpnip;
@@ -4835,8 +4835,8 @@ if ($cgiparams{'TYPE'} eq 'host') {
            print"</td></tr></table><br><br>";
                my $name=$cgiparams{'CHECK1'};
                $checked{'RG'}{$cgiparams{'RG'}} = 'CHECKED';
-               
-       if (! -z "${General::swroot}/ovpn/ccd.conf"){   
+
+       if (! -z "${General::swroot}/ovpn/ccd.conf"){
                print"<table border='0' width='100%' cellspacing='1' cellpadding='0'><tr><td width='1%'></td><td width='30%' class='boldbase' align='center'><b>$Lang::tr{'ccd name'}</td><td width='15%' class='boldbase' align='center'><b>$Lang::tr{'network'}</td><td class='boldbase' align='center' width='18%'><b>$Lang::tr{'ccd clientip'}</td></tr>";
                foreach my $key (sort { uc($ccdconfhash{$a}[0]) cmp uc($ccdconfhash{$b}[0]) } keys %ccdconfhash) {
                        $count++;
@@ -4852,24 +4852,24 @@ if ($cgiparams{'TYPE'} eq 'host') {
 # ccd end
        &Header::closebox();
        if ($cgiparams{'KEY'} && $cgiparams{'AUTH'} eq 'psk') {
-               
+
                } elsif (! $cgiparams{'KEY'}) {
-               
-               
+
+
            my $disabled='';
            my $cakeydisabled='';
            my $cacrtdisabled='';
            if ( ! -f "${General::swroot}/ovpn/ca/cakey.pem" ) { $cakeydisabled = "disabled='disabled'" } else { $cakeydisabled = "" };
            if ( ! -f "${General::swroot}/ovpn/ca/cacert.pem" ) { $cacrtdisabled = "disabled='disabled'" } else { $cacrtdisabled = "" };
-           
+
            &Header::openbox('100%', 'LEFT', $Lang::tr{'authentication'});
+
+
  if ($cgiparams{'TYPE'} eq 'host') {
 
        print <<END;
            <table width='100%' cellpadding='0' cellspacing='5' border='0'>
-           
+
            <tr><td><input type='radio' name='AUTH' value='certreq' $checked{'AUTH'}{'certreq'} $cakeydisabled /></td><td class='base'>$Lang::tr{'upload a certificate request'}</td><td class='base' rowspan='2'><input type='file' name='FH' size='30' $cacrtdisabled></td></tr>
            <tr><td><input type='radio' name='AUTH' value='certfile' $checked{'AUTH'}{'certfile'} $cacrtdisabled /></td><td class='base'>$Lang::tr{'upload a certificate'}</td></tr>
            <tr><td colspan='3'>&nbsp;</td></tr>
@@ -4894,7 +4894,7 @@ END
 
        print <<END;
            <table width='100%' cellpadding='0' cellspacing='5' border='0'>
-      
+
            <tr><td><input type='radio' name='AUTH' value='certgen' $checked{'AUTH'}{'certgen'} $cakeydisabled /></td><td class='base'>$Lang::tr{'generate a certificate'}</td><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td><td class='base'>$Lang::tr{'users fullname or system hostname'}:&nbsp;<img src='/blob.gif' alt='*' /></td><td class='base' nowrap='nowrap'><input type='text' name='CERT_NAME' value='$cgiparams{'CERT_NAME'}' SIZE='32' $cakeydisabled /></td></tr>
            <tr><td>&nbsp;</td><td class='base'>$Lang::tr{'users email'}:</td><td class='base' nowrap='nowrap'><input type='text' name='CERT_EMAIL' value='$cgiparams{'CERT_EMAIL'}' SIZE='32' $cakeydisabled /></td></tr>
@@ -4903,8 +4903,8 @@ END
            <tr><td>&nbsp;</td><td class='base'>$Lang::tr{'city'}:</td><td class='base' nowrap='nowrap'><input type='text' name='CERT_CITY' value='$cgiparams{'CERT_CITY'}' SIZE='32' $cakeydisabled /></td></tr>
            <tr><td>&nbsp;</td><td class='base'>$Lang::tr{'state or province'}:</td><td class='base' nowrap='nowrap'><input type='text' name='CERT_STATE' value='$cgiparams{'CERT_STATE'}' SIZE='32' $cakeydisabled /></td></tr>
            <tr><td>&nbsp;</td><td class='base'>$Lang::tr{'country'}:</td><td class='base'><select name='CERT_COUNTRY' $cakeydisabled>
-          
-      
+
+
 END
 ;
 
@@ -4950,7 +4950,7 @@ END
                <tr><td colspan='3'><hr /></td></tr>
                <tr><td class='base' colspan='3' align='left'><img src='/blob.gif' alt='*' />&nbsp;$Lang::tr{'required field'}</td></tr>
        </table>
+
 END
 }
 
@@ -4959,15 +4959,15 @@ END
 ###
            ;
            &Header::closebox();
-           
+
        }
 
-#A.Marx CCD new client 
+#A.Marx CCD new client
 if ($cgiparams{'TYPE'} eq 'host') {
            print"<br><br>";
            &Header::openbox('100%', 'LEFT', "$Lang::tr{'ccd client options'}:");
 
-       
+
        print <<END;
        <table border='0' width='100%'>
        <tr><td width='20%'>Redirect Gateway:</td><td colspan='3'><input type='checkbox' name='RG' $checked{'RG'}{'on'} /></td></tr>
@@ -4975,7 +4975,7 @@ if ($cgiparams{'TYPE'} eq 'host') {
        <tr><td colspan='4'>&nbsp</td></tr>
        <tr><td valign='top'>$Lang::tr{'ccd iroute'}</td><td align='left' width='30%'><textarea name='IR' cols='26' rows='6' wrap='off'>
 END
-       
+
        if ($cgiparams{'IR'} ne ''){
                print $cgiparams{'IR'};
        }else{
@@ -4991,13 +4991,13 @@ END
                        }
                }
        }
-        
+
        print <<END;
 </textarea></td><td valign='top' colspan='2'>$Lang::tr{'ccd iroutehint'}</td></tr>
        <tr><td colspan='4'><br></td></tr>
        <tr><td valign='top' rowspan='3'>$Lang::tr{'ccd iroute2'}</td><td align='left' valign='top' rowspan='3'><select name='IFROUTE' style="width: 205px"; size='6' multiple>
 END
-       
+
        my $set=0;
        my $selorange=0;
        my $selblue=0;
@@ -5007,12 +5007,12 @@ END
        my $other=0;
        my $none=0;
        my @temp=();
-       
+
        our @current = ();
        open(FILE, "${General::swroot}/main/routing") ;
        @current = <FILE>;
        close (FILE);
-       &General::readhasharray ("${General::swroot}/ovpn/ccdroute2", \%ccdroute2hash);         
+       &General::readhasharray ("${General::swroot}/ovpn/ccdroute2", \%ccdroute2hash);
        #check for "none"
        foreach my $key (keys %ccdroute2hash) {
                if($ccdroute2hash{$key}[0] eq $cgiparams{'NAME'}){
@@ -5029,7 +5029,7 @@ END
        }
        #check if static routes are defined for client
        foreach my $line (@current) {
-               chomp($line);   
+               chomp($line);
                $line=~s/\s*$//g;                       # remove newline
                @temp=split(/\,/,$line);
                $temp[1] = '' unless defined $temp[1]; # not always populated
@@ -5045,7 +5045,7 @@ END
                        }
                }
                if ($set == '1' && $#temp != -1){ print"<option selected>$temp[1]</option>";$set=0;}elsif($set == '0' && $#temp != -1){print"<option>$temp[1]</option>";}
-       }       
+       }
 
        my %vpnconfig = ();
        &General::readhasharray("${General::swroot}/vpn/config", \%vpnconfig);
@@ -5097,14 +5097,14 @@ END
                }
        }
        if (&haveBlueNet() && $selblue == '1'){ print"<option selected>$Lang::tr{'blue'}</option>";$selblue=0;}elsif(&haveBlueNet() && $selblue == '0'){print"<option>$Lang::tr{'blue'}</option>";}
-       if (&haveOrangeNet() && $selorange == '1'){ print"<option selected>$Lang::tr{'orange'}</option>";$selorange=0;}elsif(&haveOrangeNet() && $selorange == '0'){print"<option>$Lang::tr{'orange'}</option>";}                       
+       if (&haveOrangeNet() && $selorange == '1'){ print"<option selected>$Lang::tr{'orange'}</option>";$selorange=0;}elsif(&haveOrangeNet() && $selorange == '0'){print"<option>$Lang::tr{'orange'}</option>";}
        if ($selgreen == '1' || $other == '0'){ print"<option selected>$Lang::tr{'green'}</option>";$set=0;}else{print"<option>$Lang::tr{'green'}</option>";};
-       
+
        print<<END;
        </select></td><td valign='top'>DNS1:</td><td valign='top'><input type='TEXT' name='CCD_DNS1' value='$cgiparams{'CCD_DNS1'}' size='30' /></td></tr>
        <tr valign='top'><td>DNS2:</td><td><input type='TEXT' name='CCD_DNS2' value='$cgiparams{'CCD_DNS2'}' size='30' /></td></tr>
        <tr valign='top'><td valign='top'>WINS:</td><td><input type='TEXT' name='CCD_WINS' value='$cgiparams{'CCD_WINS'}' size='30' /></td></tr></table><br><hr>
-       
+
 END
 ;
      &Header::closebox();
@@ -5147,7 +5147,7 @@ END
                    }
                }
     }
-    
+
 #default setzen
     if ($cgiparams{'DCIPHER'} eq '') {
                $cgiparams{'DCIPHER'} =  'AES-256-CBC';
@@ -5275,8 +5275,8 @@ END
        $activeonrun = "";
     } else {
        $activeonrun = "disabled='disabled'";
-    }  
-    &Header::openbox('100%', 'LEFT', $Lang::tr{'global settings'});    
+    }
+    &Header::openbox('100%', 'LEFT', $Lang::tr{'global settings'});
        print <<END;
     <table width='100%' border='0'>
     <form method='post'>
@@ -5293,7 +5293,7 @@ END
        print "<tr><td class='boldbase'>$Lang::tr{'ovpn on blue'}</td>";
        print "<td><input type='checkbox' name='ENABLED_BLUE' $checked{'ENABLED_BLUE'}{'on'} /></td>";
     }
-    if (&haveOrangeNet()) {    
+    if (&haveOrangeNet()) {
        print "<tr><td class='boldbase'>$Lang::tr{'ovpn on orange'}</td>";
        print "<td><input type='checkbox' name='ENABLED_ORANGE' $checked{'ENABLED_ORANGE'}{'on'} /></td>";
     }
@@ -5310,7 +5310,7 @@ END
        <td class='boldbase' nowrap='nowrap' colspan='2'>$Lang::tr{'ovpn subnet'}<br /><input type='TEXT' name='DOVPN_SUBNET' value='$cgiparams{'DOVPN_SUBNET'}' size='30' /></td></tr>
     <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'protocol'}</td>
         <td><select name='DPROTOCOL'><option value='udp' $selected{'DPROTOCOL'}{'udp'}>UDP</option>
-                                           <option value='tcp' $selected{'DPROTOCOL'}{'tcp'}>TCP</option></select></td>                                    
+                                           <option value='tcp' $selected{'DPROTOCOL'}{'tcp'}>TCP</option></select></td>
         <td class='boldbase'>$Lang::tr{'destination port'}:</td>
         <td><input type='TEXT' name='DDEST_PORT' value='$cgiparams{'DDEST_PORT'}' size='5' /></td></tr>
     <tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'MTU'}&nbsp;</td>
@@ -5363,12 +5363,12 @@ END
 
     <tr><td colspan='4'><br><br></td></tr>
 END
-;                                 
-    
+;
+
     if ( $srunning eq "yes" ) {
        print "<tr><td align='right' colspan='4'><input type='submit' name='ACTION' value='$Lang::tr{'save'}' disabled='disabled' />";
        print "<input type='submit' name='ACTION' value='$Lang::tr{'ccd net'}' />";
-       print "<input type='submit' name='ACTION' value='$Lang::tr{'advanced server'}' />";     
+       print "<input type='submit' name='ACTION' value='$Lang::tr{'advanced server'}' />";
        print "<input type='submit' name='ACTION' value='$Lang::tr{'stop ovpn server'}' /></td></tr>";
     } else{
        print "<tr><td align='right' colspan='4'><input type='submit' name='ACTION' value='$Lang::tr{'save'}' />";
@@ -5378,13 +5378,13 @@ END
             -e "${General::swroot}/ovpn/ca/dh1024.pem" &&
             -e "${General::swroot}/ovpn/certs/servercert.pem" &&
             -e "${General::swroot}/ovpn/certs/serverkey.pem") &&
-           (( $cgiparams{'ENABLED'} eq 'on') || 
+           (( $cgiparams{'ENABLED'} eq 'on') ||
            ( $cgiparams{'ENABLED_BLUE'} eq 'on') ||
            ( $cgiparams{'ENABLED_ORANGE'} eq 'on'))){
            print "<input type='submit' name='ACTION' value='$Lang::tr{'start ovpn server'}' /></td></tr>";
        } else {
-           print "<input type='submit' name='ACTION' value='$Lang::tr{'start ovpn server'}' disabled='disabled' /></td></tr>";    
-       }    
+           print "<input type='submit' name='ACTION' value='$Lang::tr{'start ovpn server'}' disabled='disabled' /></td></tr>";
+       }
     }
     print "</form></table>";
     &Header::closebox();
@@ -5476,7 +5476,7 @@ END
           my @output = "";
           my @tustate = "";
           my $tport = $confighash{$key}[22];
-          my $tnet = new Net::Telnet ( Timeout=>5, Errmode=>'return', Port=>$tport); 
+          my $tnet = new Net::Telnet ( Timeout=>5, Errmode=>'return', Port=>$tport);
           if ($tport ne '') {
           $tnet->open('127.0.0.1');
           @output = $tnet->cmd(String => 'state', Prompt => '/(END.*\n|ERROR:.*\n)/');
@@ -5526,7 +5526,7 @@ END
 
     print <<END;
        <td align='center' $col1>$active</td>
-               
+
        <form method='post' name='frm${key}a'><td align='center' $col>
            <input type='image'  name='$Lang::tr{'dl client arch'}' src='/images/openvpn.png' alt='$Lang::tr{'dl client arch'}' title='$Lang::tr{'dl client arch'}' border='0' />
            <input type='hidden' name='ACTION' value='$Lang::tr{'dl client arch'}' />
@@ -5560,7 +5560,7 @@ END
        ; } else {
            print "<td>&nbsp;</td>";
        }
-       if ($confighash{$key}[4] eq 'cert' && -f "${General::swroot}/ovpn/certs/$confighash{$key}[1].p12") { 
+       if ($confighash{$key}[4] eq 'cert' && -f "${General::swroot}/ovpn/certs/$confighash{$key}[1].p12") {
            print <<END;
            <form method='post' name='frm${key}c'><td align='center' $col>
                <input type='image' name='$Lang::tr{'download pkcs12 file'}' src='/images/media-floppy.png' alt='$Lang::tr{'download pkcs12 file'}' title='$Lang::tr{'download pkcs12 file'}' border='0' />
@@ -5929,7 +5929,7 @@ END
                        </tr>
                </table>
        </form>
-       
+
        <br><hr>
 END
        ;
index 8faf4490cac295c9dc5f35721a2755806d86a73c..0111a240b6a07408a8f36fa7e2c52a7a948d7a65 100644 (file)
@@ -3606,7 +3606,7 @@ END
 
                print ASNBLFILE<<END
 TESTDATA = (10.0.0.1, 0) (127.0.0.1, 0) (fe80::1, 0)
-ACTIVE_ASNBLS = 
+ACTIVE_ASNBLS =
 END
 ;
 
index 2bb85851d2891883d388facd033a90f41403741d..38f7599d74255c9d24dbcca6e1b5bd3525bae3d0 100644 (file)
@@ -72,7 +72,7 @@ if ( (($remotesettings{'ACTION'} eq $Lang::tr{'save'}) || ($remotesettings{'ACTI
                &General::log($Lang::tr{'ssh is disabled'});
                unlink "${General::swroot}/remote/enablessh";
        }
-       
+
        if ($remotesettings{'SSH_PORT'} eq 'on')
        {
                &General::log("SSH Port 22");
@@ -81,7 +81,7 @@ if ( (($remotesettings{'ACTION'} eq $Lang::tr{'save'}) || ($remotesettings{'ACTI
        {
                &General::log("SSH Port 222");
        }
-       
+
 if ( $remotesettings{'ACTION'} eq $Lang::tr{'ssh tempstart15'} || $remotesettings{'ACTION'} eq $Lang::tr{'ssh tempstart30'} ){
        if ($remotesettings{'ENABLE_SSH'} eq 'off')
        {
@@ -90,7 +90,7 @@ if ( $remotesettings{'ACTION'} eq $Lang::tr{'ssh tempstart15'} || $remotesetting
        }
   if ( $remotesettings{'ACTION'} eq $Lang::tr{'ssh tempstart15'} ) { $counter = 900;}
   elsif ( $remotesettings{'ACTION'} eq $Lang::tr{'ssh tempstart30'} ) { $counter = 1800;}
+
   system("/usr/local/bin/sshctrl tempstart $counter >/dev/null");
  }
 else {
index e69dc425ab26abbc6d100806c13cfcd262c47f30..109fc3e3e54b8f3ea9bc351abd02157b4bc24082 100644 (file)
@@ -49,7 +49,7 @@ $settings{'IP'} = '';
 $settings{'GATEWAY'} = '';
 $settings{'REMARK'} = '';
 my @nosaved=('EN','IP','GATEWAY','REMARK');    # List here ALL setting2 fields. Mandatory
-    
+
 $settings{'ACTION'} = '';              # add/edit/remove
 $settings{'KEY1'} = '';                        # point record for ACTION
 
@@ -105,14 +105,14 @@ if ($settings{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
     $temp[0] = $temp[0] ne '' ? '' : 'on';             # Toggle the field
     @current[$settings{'KEY1'}] = join (',',@temp)."\n";
     $settings{'KEY1'} = '';                            # End edit mode
-    
+
     &General::log($Lang::tr{'routing config changed'});
 
     #Save current
     open(FILE, ">$datafile") or die 'routing datafile error';
     print FILE @current;
     close(FILE);
-       
+
     # Rebuild configuration file
     &BuildConfiguration;
 }
@@ -174,7 +174,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
         # Write changes to config file.
         &SortDataFile;                         # sort newly added/modified entry
         &BuildConfiguration;                   # then re-build routing
-       
+
        #map ($settings{$_}='' ,@nosaved);      # Clear fields
     }
 }
@@ -192,7 +192,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'edit'}) {
 }
 
 if ($settings{'ACTION'} eq $Lang::tr{'remove'}) {
-    splice (@current,$settings{'KEY1'},1);             # Delete line 
+    splice (@current,$settings{'KEY1'},1);             # Delete line
     open(FILE, ">$datafile") or die 'route datafile error';
     print FILE @current;
     close(FILE);
@@ -315,7 +315,7 @@ foreach my $line (@current) {
        $gdesc = $Lang::tr{'click to disable'};
     } else {
        $gif = 'off.gif';
-       $gdesc = $Lang::tr{'click to enable'}; 
+       $gdesc = $Lang::tr{'click to enable'};
     }
 
     #Colorize each line
@@ -405,7 +405,7 @@ if ( $output != "" ) {
 sub SortDataFile
 {
     our %entries = ();
-    
+
     # Sort pair of record received in $a $b special vars.
     # When IP is specified use numeric sort else alpha.
     # If sortname ends with 'Rev', do reverse sort.
@@ -449,13 +449,13 @@ sub SortDataFile
        # Build a pair 'Field Name',value for each of the data dataline.
        # Each SORTABLE field must have is pair.
        # Other data fields (non sortable) can be grouped in one
-       
+
        my @record = ('KEY',$key++,'EN',$temp[0],'IP',$temp[1],'GATEWAY',$temp[2],'REMARK',$temp[3]);
        my $record = {};                                # create a reference to empty hash
        %{$record} = @record;                           # populate that hash with @record
        $entries{$record->{KEY}} = $record;             # add this to a hash of hashes
     }
-    
+
     open(FILE, ">$datafile") or die 'routing datafile error';
 
     # Each field value is printed , with the newline ! Don't forget separator and order of them.
index 9289b45193b47fba79d7145f5d8bae72bd459e09..0a3cd8c043f22b891a0b59021a205ed2c3f0f308 100644 (file)
@@ -142,7 +142,7 @@ if ($sambasettings{'ACTION'} eq $Lang::tr{'save'}) {
 }
 
 &General::readhash("${General::swroot}/samba/settings", \%sambasettings);
-  
+
 
 if ($errormessage)
        {
@@ -759,7 +759,7 @@ sub isrunning
                                {
                                if (/^Name:\W+(.*)/)
                                        {
-                                       $testcmd = $1; 
+                                       $testcmd = $1;
                                        }
                                }
                        close FILE;
@@ -775,7 +775,7 @@ sub isrunning
 sub writeconfiguration() {
        open (FILE, ">${General::swroot}/samba/global") or die "Can't save the global settings: $!";
        flock (FILE, 2);
-       
+
        print FILE <<END;
 # global.settings by IPFire Project
 
index d4b83df4f61349d9f9399f236b63606f12449877..f46eaca9450dba9b12f9ef6d3da9b7496497d03d 100644 (file)
@@ -43,7 +43,7 @@ my $data_last = $ENV{'QUERY_STRING'};
 my $rxb_last = 0;
 my $txb_last = 0;
 
-my (@fields, $field, $name, $value); 
+my (@fields, $field, $name, $value);
 @fields = split(/&/, $data_last);
 foreach $field (@fields) {
   ($name, $value) = split(/=/, $field);
index 6bf3dcc8431cb20248b711a90b9bea532951ef7a..57a02a4b630b55ba7d0f6d0e3f8187093d0fedfa 100644 (file)
@@ -50,7 +50,7 @@ $timesettings{'ENABLESETONBOOT'} = 'off';
 &Header::getcgihash(\%timesettings);
 
 if ($timesettings{'ACTION'} eq $Lang::tr{'save'})
-{ 
+{
        if ($timesettings{'ENABLENTP'} eq 'on')
        {
                if ( ! ( &General::validfqdn($timesettings{'NTP_ADDR_1'}) ||
@@ -144,7 +144,7 @@ ERROR:
                } else {
                        unlink "${General::swroot}/time/allowclients";
                }
-       
+
        }
        else
        {
@@ -222,7 +222,7 @@ $selected{'UPDATE_PERIOD'}{'weekly'} = '';
 $selected{'UPDATE_PERIOD'}{'monthly'} = '';
 $selected{'UPDATE_PERIOD'}{$timesettings{'UPDATE_PERIOD'}} = "selected='selected'";
 
-# added to v0.0.4 to refresh screen if syncro event queued 
+# added to v0.0.4 to refresh screen if syncro event queued
 my $refresh = '';
 if ( -e "/var/lock/time/settimenow") {
        $refresh = "<meta http-equiv='refresh' content='60;' />";
index 629f8ca0e0165f1e5413b39b3a63d583a9ca94a1..fb39594574159aa1756e15d0d70f650f613d508a 100644 (file)
@@ -80,7 +80,7 @@ my @vendors=();
 my %vendorstats=();
 
 my $repository = "/var/updatecache/";
-my $webhome = "/srv/web/ipfire/html"; 
+my $webhome = "/srv/web/ipfire/html";
 my $hintcolour = '#FFFFCC';
 my $colourgray = '#808080';
 
index 3a28721a92248cdd42d9b2ce78b1ec12dca7fde6..1e54372f18fc173350ff8ba83376d0da978d103d 100644 (file)
@@ -2954,10 +2954,10 @@ sub writeconfigfile
        foreach $category (@categories) {
                $blacklist = $category;
                $category =~ s/\//_/g;
-               
+
                if ( $filtersettings{"FILTER_".uc($category)} ne "on" ){
                        my $constraintrule = "false";
-                       
+
                        foreach (@tclist){
                                chomp;
                                @tc = split(/\,/);
@@ -2966,12 +2966,12 @@ sub writeconfigfile
                                        $constraintrule = "true";
                                }
                        }
-                       
+
                        if ( $constraintrule eq "false"){
                                next;
                        }
                }
-               
+
                print FILE "dest $category {\n";
                if (-e "$dbdir/$blacklist/domains") {
                        print FILE "    domainlist     $blacklist\/domains\n";
index 926f043b87a90db59b80f4456c45982e9463939b..5dfd344f2e68dd34188a2243eb7417a34eed289a 100644 (file)
@@ -239,7 +239,7 @@ sub check_status($) {
 
        if ($status =~ /^(Vulnerable|Mitigation): (.*)$/) {
                return ($1, $2);
-       } 
+       }
 
        return $status;
 }
index 164cec2de1e1889350e30079e9b287d2eaae819e..c3c4c6911b2fe085136eca316c84a85f62203575 100644 (file)
@@ -86,7 +86,7 @@ if ( $cgiparams{'ACTION'} eq 'add' )
 
   unless( &General::validmac($cgiparams{'CLIENT_MAC'}) )
   {
-    $errormessage = $Lang::tr{'invalid mac address'}; 
+    $errormessage = $Lang::tr{'invalid mac address'};
     goto ADDEXIT;
   }
 
@@ -122,7 +122,7 @@ if ( $cgiparams{'ACTION'} eq 'update' )
 
   unless( &General::validmac($cgiparams{'CLIENT_MAC'}) )
   {
-    $errormessage = $Lang::tr{'invalid mac address'}; 
+    $errormessage = $Lang::tr{'invalid mac address'};
     goto UPDATEEXIT;
   }
 
@@ -241,11 +241,11 @@ END
 ;
 
 print "<option value='green' $selected{'CLIENT_IFACE'}{'green'}>$Lang::tr{'green'}</option>";
-if (&haveBlueNet()) 
+if (&haveBlueNet())
 {
   print "<option value='blue' $selected{'CLIENT_IFACE'}{'blue'}>$Lang::tr{'blue'}</option>";
 }
-if (&haveOrangeNet()) 
+if (&haveOrangeNet())
 {
   print "<option value='orange' $selected{'CLIENT_IFACE'}{'orange'}>$Lang::tr{'orange'}</option>";
 }
@@ -269,7 +269,7 @@ print <<END
 END
 ;
 
-if ( ($cgiparams{'ACTION'} eq 'edit') || ($cgiparams{'ACTION'} eq 'update') ) 
+if ( ($cgiparams{'ACTION'} eq 'edit') || ($cgiparams{'ACTION'} eq 'update') )
 {
   print "<input type='hidden' name='ID' value='$cgiparams{'ID'}' />\n";
   print "<input type='hidden' name='ACTION' value='update' />";
@@ -309,12 +309,12 @@ for $i ( 0 .. $#wol_devices )
   my $wol_iface = $wol_devices[$i]{'IFace'};
   my $wol_txt = &Header::cleanhtml($wol_devices[$i]{'Comment'});
 
-  if ( (($cgiparams{'ACTION'} eq 'edit') || ($cgiparams{'ACTION'} eq 'update')) && ($i == $cgiparams{'ID'}) ) 
+  if ( (($cgiparams{'ACTION'} eq 'edit') || ($cgiparams{'ACTION'} eq 'update')) && ($i == $cgiparams{'ID'}) )
   {
     print "<tr>";
     $col="bgcolor='${Header::colouryellow}'";
   }
-  elsif ( $i % 2) 
+  elsif ( $i % 2)
   {
     print "<tr>";
     $col="bgcolor='$color{'color20'}'";
@@ -332,7 +332,7 @@ for $i ( 0 .. $#wol_devices )
 <td align='center' $col>
 END
 ;
-  if ( (($wol_iface eq 'blue') && ! &haveBlueNet()) 
+  if ( (($wol_iface eq 'blue') && ! &haveBlueNet())
     || (($wol_iface eq 'orange') && ! &haveOrangeNet()) )
   {
     # configured IFace (momentarily) not available -> now wakeup button/image
@@ -384,7 +384,7 @@ sub ReadConfig
 {
   # datafileformat:
   #   ID,MAC,IFACE,,Comment
-  # 
+  #
   my @tmpfile = ();
   if ( open(FILE, "$datafile") )
   {
@@ -421,14 +421,14 @@ sub WriteConfig
     unless(&General::validmac($wol_devices[$i]{'MAC'})) { next; }
     unshift (@tmp_clients, uc($wol_devices[$i]{'MAC'}).",$wol_devices[$i]{'IFace'},,$wol_devices[$i]{'Comment'}");
   }
-  
+
   # sort tmp_clients on MAC
   @tmp_clients = sort ( @tmp_clients );
 
   open(FILE, ">$datafile") or die 'hosts datafile error';
 
   my $count = 0;
-  foreach $line (@tmp_clients) 
+  foreach $line (@tmp_clients)
   {
     print FILE "$count,$line\n";
     $count++;
index 934fe6bebce38dc8ad875b13a4d278e6d1297087..b819dd3096d02111c6e582990989de728973f4ec 100644 (file)
@@ -82,7 +82,7 @@ if ((-e $svhosts_file) && (!-z $svhosts_file))
 
 if (($cgiparams{'ACTION'} eq 'submit') && ($is_supervisor))
 {
-       if (    ($cgiparams{'PASSWORD'} eq $proxysettings{'SUPERVISOR_PASSWORD'}) && (!($proxysettings{'SUPERVISOR_PASSWORD'} eq '')) || 
+       if (    ($cgiparams{'PASSWORD'} eq $proxysettings{'SUPERVISOR_PASSWORD'}) && (!($proxysettings{'SUPERVISOR_PASSWORD'} eq '')) ||
                ((defined($proxysettings{'SUPERVISOR_PASSWORD'})) && ($proxysettings{'SUPERVISOR_PASSWORD'} eq '')))
        {
                &write_acl;
@@ -269,7 +269,7 @@ sub readhash
                        {
                                $val =~ s/^\'//g;
                                $val =~ s/\'$//g;
-       
+
                                # Untaint variables read from hash
                                $var =~ /([A-Za-z0-9_-]*)/;        $var = $1;
                                $val =~ /([\w\W]*)/; $val = $1;
index 35bdaaa6052895995887fbc58b092edb06f6883f..27a2d9dd71501cebc7f8ef743b2c0be0ad983069 100644 (file)
@@ -39,7 +39,7 @@ my %checked=();
 my $errormessage = '';
 my $filename = "${General::swroot}/wireless/config";
 my $hostsfile = "${General::swroot}/main/hosts";
-our %dhcpsettings=(); 
+our %dhcpsettings=();
 our %netsettings=();
 
 $cgiparams{'ENABLED'} = 'off';
@@ -92,9 +92,9 @@ if ($cgiparams{'ACTION'} eq 'add')
        {
                $cgiparams{'SOURCE_IP'} = 'NONE';
        } else {
-               unless(&General::validipormask($cgiparams{'SOURCE_IP'})) 
+               unless(&General::validipormask($cgiparams{'SOURCE_IP'}))
                {
-                       $errormessage = $Lang::tr{'invalid fixed ip address'}; 
+                       $errormessage = $Lang::tr{'invalid fixed ip address'};
                        goto ADDERROR;
                }
        }
@@ -102,9 +102,9 @@ if ($cgiparams{'ACTION'} eq 'add')
        {
                $cgiparams{'SOURCE_MAC'} = 'NONE';
        } else {
-               unless(&General::validmac($cgiparams{'SOURCE_MAC'})) 
-               { 
-                       $errormessage = $Lang::tr{'invalid fixed mac address'}; 
+               unless(&General::validmac($cgiparams{'SOURCE_MAC'}))
+               {
+                       $errormessage = $Lang::tr{'invalid fixed mac address'};
                }
        }
 
@@ -323,7 +323,7 @@ foreach my $line (@current)
                }
                if ( $hname eq "" ) {
                        my ($aliases, $addrtype, $length, @addrs);
-                       ($hname, $aliases, $addrtype, $length, @addrs) = 
+                       ($hname, $aliases, $addrtype, $length, @addrs) =
                                gethostbyaddr(pack("C4", split(/\./,  $sourceip)), 2);
                }
        }
index 7cd23aed4671bbae4b4ef288a4cb0ea22a764010..00d17790422d7644e8af5d7224ddc7872f8ebb2a 100644 (file)
@@ -303,7 +303,7 @@ END
                        $gdesc = $Lang::tr{'click to disable'};
                } else {
                        $gif = 'off.gif';
-                       $gdesc = $Lang::tr{'click to enable'}; 
+                       $gdesc = $Lang::tr{'click to enable'};
                }
 
                # Colorize each line
@@ -576,7 +576,7 @@ sub showEditBox() {
                        <br>
                        <hr>
 
-                       
+
                        <strong>
                                $Lang::tr{'wlan client advanced settings'}:
                        </strong>
index 62f18e3086cfa1c66ad3be5366083ab6d9e7ae45..07a1f51da3cee9f2f42dddf59317869c35c23023 100644 (file)
@@ -67,7 +67,7 @@ my $extraHead = <<END
        #zoneconf td.heading {
                background-color: lightgrey;
                color: white;
-       }       
+       }
        #zoneconf td.heading.bold::first-line {
                font-weight: bold;
                line-height: 1.6;
@@ -310,7 +310,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) {
                                }
 
                                $VALIDATE_nic_check{"VLAN $mac $vlan_tag"} = 1;
-                               
+
                                # check VLAN tag range: 1..4094 (0, 4095 are reserved)
                                unless (looks_like_number($vlan_tag) && ($vlan_tag >= 1) && ($vlan_tag <= 4094)) {
                                        $VALIDATE_error = $Lang::tr{"zoneconf val vlan tag range error"};
@@ -507,7 +507,7 @@ END
                if ($access_selected{"NONE"} eq "") {
                        $highlight = $_;
                }
-               
+
                print <<END
                <td class="$highlight">
                        <select name="ACCESS $uc $mac" data-zone="$uc" data-mac="$mac" onchange="highlightAccess(this)">
@@ -542,7 +542,7 @@ foreach (@zones) { # load settings and prepare form elements for each zone
        my $stp_available = $ethsettings{"${uc}_MODE"} eq "bridge"; # STP is only available in bridge mode
        my $stp_enabled = $ethsettings{"${uc}_STP"} eq "on";
        my $stp_priority = $ethsettings{"${uc}_STP_PRIORITY"};
-       
+
        # set priority to default value if no numerical value is configured
        $stp_priority = 32768 unless looks_like_number($stp_priority);
 
index e7ee4c76926defb0990508037e5ce8c504bd809a..c6f5930c934ab5494d70c5b5dad273e9774e3660 100644 (file)
@@ -27,8 +27,8 @@ function rrdimage_selectRange(buttonObj) {
 
        // Get selected time range from button
        const range = buttonObj.dataset.range;
-       
-       // Get surrounding div box and select new range 
+
+       // Get surrounding div box and select new range
        let graphBox = $(buttonObj).closest('div');
        _rrdimg_setRange(graphBox, range);
 }
@@ -60,7 +60,7 @@ function _rrdimg_setRange(graphBox, range, initMode = false) {
        // Check if the time range is changed
        if((graphBox.data('range') !== range) || initMode) {
                graphBox.data('range', range); //Store new range
-               
+
                // Update button highlighting
                graphBox.find('button').removeClass('selected');
                graphBox.find(`button[data-range="${range}"]`).addClass('selected');
@@ -105,7 +105,7 @@ function _rrdimg_setRange(graphBox, range, initMode = false) {
 // graphBox: jQuery object (graph element must be valid)
 function _rrdimg_reload(graphBox) {
        const origin = graphBox.data('origin');
-       const graph = graphBox.data('graph');   
+       const graph = graphBox.data('graph');
        const timestamp = Date.now();
 
        // Get user selected range or fall back to default
index 297561e3a795aa4fce870a32ffc3e7428abe0c4b..fedf8112187f240e7087f5677d9ae6b3e9dc5923 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
 <html>
        <head>
-               <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
+               <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                <title>ACCESS MESSAGE</title>
                <style content="text/css">
                        td.image {
index 4f9d2278e2ba5e3ce99dd28df1848b683c766b7d..5fed0084cad557169bbbd19473f0e4f57df397a5 100644 (file)
@@ -103,7 +103,7 @@ sub readhash {
                        if ($var) {
                                $val =~ s/^\'//g;
                                $val =~ s/\'$//g;
-       
+
                                # Untaint variables read from hash
                                $var =~ /([A-Za-z0-9_-]*)/;        $var = $1;
                                $val =~ /([\w\W]*)/; $val = $1;
index 54f8966d5824450e4f1ca2128248b78fd2edac5b..d74c962e430fb9529792f22c360164879710ef4b 100644 (file)
@@ -39,7 +39,7 @@ require "${General::swroot}/lang.pl";
 # @param submenu entries
 sub showsubmenu() {
        my $submenus = shift;
-       
+
        print "<ul>";
        foreach my $item (sort keys %$submenus) {
                $link = getlink($submenus->{$item});
index 40b4fcda6c3c5db6dc2c3f9e1119be0d07817f37..76e0e27f1f7c67df0b5bd70e3bf24b3b0ded0201 100644 (file)
--- a/lfs/7zip
+++ b/lfs/7zip
@@ -73,7 +73,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d4c3df5352b4594be50903a6078e33313e844cf1..92d7198920f04cb2ae032a394061f140886dcf44 100644 (file)
@@ -244,7 +244,7 @@ endef
 # Common Macro Definitions
 ###############################################################################
 
-# For each package we create a list of files that it installed under 
+# For each package we create a list of files that it installed under
 # log/<TARGET> name. Modified files are not identified
 #
 define FIND_FILES
index abae8a2f9299db4cd0dd394799a842092811e720..17b8386fb7c5cd2422df43977297c2ef2ccd5bf3 100644 (file)
--- a/lfs/alac
+++ b/lfs/alac
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index f8f45a6e8761857eda9996e8e93c976590f32a62..ab6eeca708242d7e4e4b23b0047c264171e4e5eb 100644 (file)
--- a/lfs/alsa
+++ b/lfs/alsa
@@ -67,7 +67,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 82c61f12af6edcd5d3f837a845f1047030f3af3f..0bbc476ce10564056ad4e3962aa67f59dd9099d7 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c2b7aa4c7edbe311dfdbcb4e4076b04ff70c0d18..19b5624cc17b31b65a841c0542eb7b23b8113f67 100644 (file)
--- a/lfs/avahi
+++ b/lfs/avahi
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -106,10 +106,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        # Install initscript
        $(call INSTALL_INITSCRIPTS,$(SERVICES))
-       
+
        #install backup definition
        install -v -m 644 ${DIR_SRC}/config/backup/includes/avahi \
                        /var/ipfire/backup/addons/includes/avahi
-                       
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 5e004f722f67b05502acd5a4ac24cd70c3ca4bd0..0af0ee0f11c2d923bfe95d73864e8cf6aedf7c6b 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 8fcfd861621fd002627c13012c4ba7b4182b0728..211f3570f0f12bf1e9a5c1accdf58ba96ebee9d2 100644 (file)
@@ -44,13 +44,13 @@ SERVICES   =
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
-md5 : 
+md5 :
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 71ba3b877edfb117ddd101986a41252106a39dca..63391f7adcbc5dd1d744fe9aa797b89f1be634a2 100644 (file)
@@ -61,7 +61,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 33555fa23dbfeb0d22b428d69fa7d8bdb1c16b21..121e8aa54022cb87ad91f2ad209c617db2edc765 100644 (file)
@@ -62,7 +62,7 @@ ifeq "$(PASS)" "1"
        --with-lib-path=$(TOOLS_DIR)/lib \
        --disable-nls
   EXTRA_MAKE =
-  EXTRA_INSTALL = 
+  EXTRA_INSTALL =
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools2
   EXTRA_ENV = \
@@ -76,8 +76,8 @@ else
        --with-lib-path=$(TOOLS_DIR)/lib \
        --with-sysroot \
        --disable-nls
-  EXTRA_MAKE = 
-  EXTRA_INSTALL = 
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 endif
 endif
 
index 48c3e42b4c2b1f2cc7d16630966c3785e9829cee..76f82f2827120b7d1c114f08f6bfbb473016b4fd 100644 (file)
--- a/lfs/bird
+++ b/lfs/bird
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 149aa407686561af05d3cc6f6e788034118927cf..dd15263798395142ea80922c6518872e2c33d867 100644 (file)
@@ -35,11 +35,11 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
-md5 : 
+md5 :
 
 ###############################################################################
 # Installation Details
index df153e3ca84af6fee3919831a5638e0361d00dc9..30c7ddc024f0b5a6082cfdafb60455c90e9a9fea 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 07f7b02fe39aca36a01dc8a3fde016817ba5f4f9..96a3fd8a251764ef3a4b60c124bcb771385a6505 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0eb8c0933ff363c15cf0c3ab18ca76c9f8784894..4474a59cd4a491cc8d13ba5e9c63c15f2f7fde66 100644 (file)
@@ -36,11 +36,11 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 
 install : $(TARGET)
 
-check : 
+check :
 
-download : 
+download :
 
-md5 : 
+md5 :
 
 ###############################################################################
 # Installation Details
index 712c74f9d0692dee4b311080d5152c0c22f39384..524c3bceed2727fe8902d2fa8f0ef1c29df58465 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index adc9cb344c8e8989a1d930856688c02a2146e86f..58837ad9c36859a500d5f9cf2dfa4811929020e7 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Antivirus Toolkit 
+SUMMARY    = Antivirus Toolkit
 
 VER        = 0.104.2
 
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index f2e08d1e3e168140ad3d69fd0d62367fc33538d2..3e48ae2f4f14a3cd0814b21bddf6f6ac8def536e 100644 (file)
@@ -40,11 +40,11 @@ GCC_VER    = 4.1.2
 # Top-level Rules
 ###############################################################################
 
-objects = 
+objects =
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
index 09d8c6fcff9b0797f7509158e1a292a385eef528..d749c61c71bd16a9fa413dd0e9c75e06e40a34c7 100644 (file)
@@ -126,8 +126,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        mv /etc/collectd.vpn /var/ipfire/ovpn/collectd.vpn
        chown nobody.nobody /var/ipfire/ovpn/collectd.vpn
        ln -f -s ../var/ipfire/ovpn/collectd.vpn /etc/collectd.vpn
-       ln -f -s ../init.d/collectd /etc/rc.d/rc0.d/K50collectd 
+       ln -f -s ../init.d/collectd /etc/rc.d/rc0.d/K50collectd
        ln -f -s ../init.d/collectd /etc/rc.d/rc3.d/S29collectd
-       ln -f -s ../init.d/collectd /etc/rc.d/rc6.d/K50collectd 
+       ln -f -s ../init.d/collectd /etc/rc.d/rc6.d/K50collectd
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 08d72310eb3a8b912b616a890ae2de9c01061a94..a3329c1d8f93002c280bb1015492d80cf5d209a5 100644 (file)
@@ -66,7 +66,7 @@ core/%:
        #remove excluded files from ROOTFILES
        grep -f $(DIR_SRC)/config/rootfiles/$@/exclude -v /tmp/ROOTFILES.tmp > /tmp/ROOTFILES
        rm -rf /tmp/ROOTFILES.tmp
-       
+
        #Change KVER to Kernelversion
        sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES
 
index 11a34fcf860a1b5e6488a74e60a6cc1e14d5fdd3..e0cad1f8692b3501c38fc5eb4f8896935188c7d7 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Tools to Determine and Set CPUfreq Settings 
+SUMMARY    = Tools to Determine and Set CPUfreq Settings
 
 VER        = 008
 
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 5abd4677be2348296d5b3b9f59e08f4548219ed4..69b75fc3e551056d82fbe2eac30c984df1584bc3 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 9452081fd08227c808e89afc69d900ac8fa74f9e..3f5ec3f7122004538e802ae6a9cbd83548232bb1 100644 (file)
--- a/lfs/dbus
+++ b/lfs/dbus
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3bf528ad5b17c84d3832a153248795c3a2cf4969..9f9be697e3f26ef021ac2ae99d13ba9081eab2ea 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Data Copying in the Presence of I/O Errors 
+SUMMARY    = Data Copying in the Presence of I/O Errors
 
 VER        = 1.25
 
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 md5 : $(subst %,%_MD5,$(objects))
 
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1b8544a17c2630922a7723e692e900a0cf74233f..237768ccf32687c7bc5f05c3f0a7eca5bf3a3db1 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e611f1bdd5ed16c903b4a6114835a9eca14f9770..95c386a1e911f10602daf090d255e45d07ed475a 100644 (file)
@@ -62,7 +62,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 58631244e2b60954513aca8e0cdd0e8fb544b4f9..f57f84fcd95d288373468d622512c18457baac27 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index cd35659aadd80e287103b74eafa7a3ed4c5ea366..e4a59a41f0783aaea1d7640d6d89012f82de16b6 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Higher-level library to access ELF files 
+SUMMARY    = Higher-level library to access ELF files
 
 VER        = 0.186
 
index b60c986ab22750cadceecbb5b8f4a4e3335c5d5d..7a6aae2d58c1333e09f664745a4f36aa6a8c1f6f 100644 (file)
@@ -71,7 +71,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e48bcd2fb1180f3b413cf261417e93e9cba0e881..9da67ab4aa76ca41597cdd545cab9093c631d78f 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9e68b7f19d5402e3f6bc0a91a4d558819d586d38..c5327c484b780fcd40d8c577eacf25429c5f570f 100644 (file)
--- a/lfs/faad2
+++ b/lfs/faad2
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 38b36aa959fafc2df473399355a128b3290ad84f..e9f77740f16b3c07519c5d8be2e26e5a895f72cc 100644 (file)
@@ -36,11 +36,11 @@ TARGET     = $(DIR_INFO)/$(THISAPP)-tools
 
 install : $(TARGET)
 
-check : 
+check :
 
-download : 
+download :
 
-md5 : 
+md5 :
 
 ###############################################################################
 # Installation Details
index 97f67e5ccf18c38f10885fba14189937f19ec43b..d16de3567aeee28722d2b85463d5a04e7e693c5a 100644 (file)
--- a/lfs/fcron
+++ b/lfs/fcron
@@ -96,7 +96,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        #Create Placeholder files
        echo "Place scripts run minutely here ..." > /etc/fcron.minutely/info.txt
-       echo "Place scripts run cyclic here ..." > /etc/fcron.cyclic/info.txt 
+       echo "Place scripts run cyclic here ..." > /etc/fcron.cyclic/info.txt
        echo "Place scripts run hourly here ..." > /etc/fcron.hourly/info.txt
        echo "Place scripts run daily here ..." > /etc/fcron.daily/info.txt
        echo "Place scripts run weekly here ..." > /etc/fcron.weekly/info.txt
index e05cf0e81e16721c381d14e3c074a55586923f9a..8aab43f00100efcf3839bc8e17e7a7e66ee90a21 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 97ed7ea90e2d8525c488838e8bcb6747dd9b476b..06b0c4a9196541f30c597e2915366b48c17ca491 100644 (file)
@@ -66,7 +66,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index fd30b9f7e0dc542a5489404e7d64fb17f5b3685d..31c703db75c15188bb36ce60a1dc0f7400673fe2 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c81d4728364af56a6749c18c376fc2c5f2912eae..7a4bddde22036433210c4df2cf64cdc69b1d879b 100644 (file)
--- a/lfs/flac
+++ b/lfs/flac
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 20f3d4a1d9a219ddc2e018882e8e5b3431194e55..e459e7a76c60bf6787e01c88045e6e19bf5105f0 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 2653cbec6e2a6cd0b2547dc62aa756125f4a9d9d..67df10ec6637e84d66944c4248a2ce0d46fd4bc7 100644 (file)
--- a/lfs/flex
+++ b/lfs/flex
@@ -36,8 +36,8 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 ifeq "$(ROOT)" ""
   TARGET = $(DIR_INFO)/$(THISAPP)
   EXTRA_CONFIG = --prefix=/usr --disable-nls
-  EXTRA_MAKE = 
-  EXTRA_INSTALL = 
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools
index 0ede44bf2d105d17a5630335b7eb8235e84fed79..a869a1f7110fe2a9d0351ba5f995042c3a304820 100644 (file)
@@ -74,7 +74,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index fd2e8260e346a0aee878ae786fa4adaaffb2acd8..60ad388efd931e71b7a7cf25b1886125d2c69093 100644 (file)
--- a/lfs/fping
+++ b/lfs/fping
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d944a77908d5a0d329c1179ce0688937f5776b02..e7eba87551fc139c85aa2d407116f402bebd0df0 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6b2e6f8e5f491191dd31903253724a3ef05bab34..ab8019c62d7a086a117dc63e4bd7c984fc7afb39 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/frr b/lfs/frr
index 81840dc05d848b210f8da6dd00f6133659dfc378..2ed931a70437a12cf6d7561a6aed42d74fca4351 100644 (file)
--- a/lfs/frr
+++ b/lfs/frr
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/gcc b/lfs/gcc
index f9502562dca0e8131d88feae8a98b5c01f10c4dd..869c03380bd475b61e7a66eb7d2ff653af35a24c 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -105,8 +105,8 @@ ifeq "$(PASS)" "1"
        --without-ppl \
        --without-cloog \
        --enable-languages=c,c++
-  EXTRA_MAKE = 
-  EXTRA_INSTALL = 
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 else
 ifeq "$(PASS)" "2"
   TARGET = $(DIR_INFO)/$(THISAPP)-tools2
@@ -125,8 +125,8 @@ ifeq "$(PASS)" "2"
        --disable-libstdcxx-pch \
        --disable-multilib \
        --disable-libgomp
-  EXTRA_MAKE = 
-  EXTRA_INSTALL = 
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 
   ifeq "$(FULL_BOOTSTRAP)" "1"
        EXTRA_CONFIG += --enable-bootstrap
@@ -149,8 +149,8 @@ else
        --disable-libstdcxx-threads \
        --disable-libstdcxx-pch \
        --with-gxx-include-dir=$(TOOLS_DIR)/$(CROSSTARGET)/include/c++/$(VER)
-  EXTRA_MAKE = 
-  EXTRA_INSTALL = 
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 endif
 endif
 endif
index e5ca19a40444e32bca22bacd37342b490db5d44a..53eb31ae430610822320dafde116771bd9638432 100644 (file)
@@ -64,7 +64,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 06d22a48f9d5e702760a0d5eb3de7b1f8b6ede4e..5434a4de3f7dd8397ceeefe30f4e168bc6741120 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 073d57c7e6276f41c1fa8465359beaf6d1e13a09..54f78c5eb9f0a34ee6465aa0c77d1aa485e5e23f 100644 (file)
@@ -35,7 +35,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = gptfdisk
 PAK_VER    = 1
 
-DEPS       = 
+DEPS       =
 
 ###############################################################################
 # Top-level Rules
@@ -55,7 +55,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 4468acb1e20f63644ec5f39e93d40b669df2ef7c..1993ed60d49532668c404eac38befb2c8e50236d 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Printer drivers for CUPS from the Gutenprint project 
+SUMMARY    = Printer drivers for CUPS from the Gutenprint project
 
 VER        = 5.2.9
 
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1101eeafc4afe43340a0f0b4d3f47d26ce7dc384..2e29fbe387628da77f4b7a4157bb4b06a144d480 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = The Reliable, High Performance TCP/HTTP Load Balancer 
+SUMMARY    = The Reliable, High Performance TCP/HTTP Load Balancer
 
 VER        = 2.2.4
 
index fb45605f79640cc08c441ed160e6ed2f2ad62b70..63d9cf3837d44d4fc7ab51be3f38a503b8ba6828 100644 (file)
--- a/lfs/hplip
+++ b/lfs/hplip
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = HP's Printing, Scanning, and Faxing Software 
+SUMMARY    = HP's Printing, Scanning, and Faxing Software
 
 VER        = 3.21.6
 
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index aa63b0285706f2ebd54e3f62b0acf2914596eb76..a3cfc52570b07597cd1471e5ccbb8d1dfc137725 100644 (file)
--- a/lfs/htop
+++ b/lfs/htop
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = An Interactive text-mode Process Viewer for Linux 
+SUMMARY    = An Interactive text-mode Process Viewer for Linux
 
 VER        = 3.1.2
 
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d16e4aaae69c6b7d7840219d6aabc0a0663a82a1..9a558132521bc9028d10d6947d82a14ae40e60bd 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 4e82efa7ee596e1cbd46a2c53e38c33340fd02ba..715d9102169ab9f4621c0b0eb2febe2049845ba3 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 73ac2157db5bc47a0a8cf7cc6f3135a3a2e4dc7e..5e0f5ae7d1b54b81b7718e0e1af31c7dc3e4751b 100644 (file)
--- a/lfs/iftop
+++ b/lfs/iftop
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6a48d0df0e94b7e426631e98a55f90bb5b5a4282..4e6b5de2851e56cbc8766e916f411f96f667e033 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3b936c98483199f80d1e28d6769b11721b3287cb..11d82e12adb713bcb8e03647b7ba98fa03ef931b 100644 (file)
@@ -72,7 +72,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9e9264cd2c5ffdc0c849e43259dbea40751974b8..260639e3071c1c1808ac78f82f9c9e296e5f2d21 100644 (file)
--- a/lfs/iperf
+++ b/lfs/iperf
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 2cd47b13053876214729c7edcb7941f462e1ea1a..ab9835fb7f13dc72e08eb3778d98b6cf8b7a8867 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index b2b02ff26f8df9936e7cd48cb7d51f310dceaed3..f3bf277f05c3a83e92aebda0c044187f7e5ae889 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -73,7 +73,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure --prefix=/usr 
+       cd $(DIR_APP) && ./configure --prefix=/usr
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
diff --git a/lfs/joe b/lfs/joe
index 51032f8ee833007354b5fd57f8d205fbde20e713..a31a7a2bfee0e0394e08fa7ac88aec90c5c15838 100644 (file)
--- a/lfs/joe
+++ b/lfs/joe
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/jq b/lfs/jq
index 067063e1fb4a199ebf3407ab4aad82c17bb2bc1f..b44571dff03bd2362dffe8959d76dc0d1053a207 100644 (file)
--- a/lfs/jq
+++ b/lfs/jq
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6a0b6c0f80b7aa7a8b757649f76516860c1efeeb..97ede64ef69972a22d6586d120178c9cc54d6d86 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 67b6f44fa6968937ca615e61411c81e6dd7bde2a..aef432543baacc17304cc830e9254d76d80f4c2c 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 2a2c5e9d74d739c02e69631a657b75977d604a01..3749bf83c331f438bf9325db400d7a0bcbe323ef 100644 (file)
--- a/lfs/knot
+++ b/lfs/knot
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 59853704cb4c1354243436e76c33af6f1ac3d928..f67429c9d5758455739114fae2aac9b7c74c73a9 100644 (file)
--- a/lfs/krb5
+++ b/lfs/krb5
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 38ca186ccdfd6c3a041b4c29c0478735f28f353f..f170b556779446430a66a7ee6bd0b7f274605d36 100644 (file)
--- a/lfs/lame
+++ b/lfs/lame
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index c5e758b8daaf0c3d9904e38f7bcf59559a1e082b..e5ed03bcdc78d504302288878b43548ae348da94 100644 (file)
@@ -36,7 +36,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = lcdproc
 PAK_VER    = 2
 
-DEPS       = 
+DEPS       =
 
 SERVICES   = lcdproc
 
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 1fb4c0b1ddd345b6667554bffca1d5e0a2998726..acf3f639ff8887740d0c37f9b3a4aeee78faa552 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 29bde8d60131a9d9c5cf71634b54d86b5515a008..82cd0090340e491328529afc234fe97920206380 100644 (file)
@@ -51,7 +51,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 934d384115b3259348d8a1f05c8a9cb66a4164bb..00c8c857c56880430aa12f62364ad5c22dd871cf 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7ab12e835d29a9000acf16378d6ed65f6d15bc66..c7d2034c1670d274f55e3373a962fea5860dac4c 100644 (file)
@@ -37,7 +37,7 @@ PROG       = libcdada
 PAK_VER    = 2
 
 
-DEPS       = 
+DEPS       =
 
 SERVICES   =
 
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7018efa41168a87e430b53eabd6dc75fe474108f..d474c929d940aca8c71f684b1c820e32dccec98c 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3e58896adaf6b881109ed3104c08e4a77665ed9b..146542eebacda4be9403d3eebbba7ed206c9d7cb 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 8c15e2ce7a448ca6c3db28b798255193067715e7..31e2ccba6e6ba29d87520f5a9674145b3041ffd0 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 8574ca067b26750c1b615884f527df105a0ecb9c..bbb135aa251979a7d435c97b78f463e918c9cd3f 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1e0c4f3adec9ec1614f2cd5f1bee2d01bc4a8c45..bdd263ee103f06c3c73b6d1b96d3ebc5ef7bc18a 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3c25bdbfaee436ef93cf74a7a00496167261b594..476a4c06b8d1859f1b9f247838ea18026f2f4bd5 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 968383f56a7e613b4084fec91a8b1f96ed3fafa7..5172c27d7515d3c52b8c163fc71464504ca35350 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 65a7e8545b142628b6bde3672ff94db459c42592..a9cf0c45f511c3723507db38823b88a6843bd223 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 97b5515d87d73a84ae36d5a57b17e0cbca5c6eb0..7c57d3d7eff0dcb4fac3031c72bde8df9d293f1c 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 4944a4b2afcc254f293004738cc375cb177bae2a..f3afca8c25747f38b9d4c23a8d857d211f64e9d7 100644 (file)
--- a/lfs/libnl
+++ b/lfs/libnl
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 15a7138dc6cbd26bb3ce7f4963347bbb12a57e6e..3f16981f8b5d1a8267e766a82a2b317d2bbd6d0e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index afc527bebb0ea9c0bd236b1910b2028eb5562a0d..5f35f95418e98c3c9d43fa5ee949960e8b2a9d77 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index be62f0a4fcb617b808ecab2d014a283e5e3e4c5e..4ff1f28d823e396115ef32f0b901606360763872 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 09baa141af4f62481347b518afe4a24a32818bb4..a761cd0a8609e288fdf9bcd0fd5721bcb7db52d6 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1a316dad6b0549050dc6758842f4bf1afb1a1b2a..97a4d45e3e92eac1d8a147cf1a76347b96a5c1c2 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist : 
+dist :
        @$(PAK)
 
 ###############################################################################
index eef5147732c7a1bdf9d8f7bfaea06b8c72d1e5c3..428b93568700e7970eacc89571eac91b9bdb6335 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6f400b3ad74efc3bee588c5f60f06735d60c92f2..6b451bd7c142aa4e536668727449d97fe8f9b672 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index f9b7afc63da17606918a626cd19a15381153f067..8e6e4423dd4344c0ebcc30d258f0ca3b7d985df2 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 940230cf77679989baef4c788c8c34cf91439360..a7d50118dc401abebf3eb3765869a0f359a54856 100644 (file)
@@ -65,7 +65,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0a21c0f2161a35c4df3242d159239fc45d856a9a..ceda88709cdfdef0af3ddb5d9aea2f714c09cae3 100644 (file)
@@ -51,7 +51,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d9df3bdbe7dd3c01c0d916311e34c2db690d2eec..658b05cb17b1cd8cd6f7ceabe8bec134a4cbb07d 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 336aae9c01e84d52cabbeeeefac9c36cf514e278..8a2b0ee8ea432ae6ddc5cf6dbcecf07e45faae90 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0d7149333ce43d8ce556b066bcc3f7287664233b..a0cde3f7e88b5fef06b987c104ee18c49daef4af 100644 (file)
@@ -54,7 +54,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7a7236eabfba588f1bc364a1e97d2238944e1ba0..1fca83156382f2a98283111ec9fd2ceee03c8a18 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -241,7 +241,7 @@ ifeq "$(LASTKERNEL)" "1"
        # Blacklist new drm framebuffer modules
        for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/gpu/drm -name *.ko.xz); do \
                echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
-       done    
+       done
        sed -i -e "s|.ko.xz||g" /etc/modprobe.d/framebuffer.conf
 
        # Disable ipv6 at runtime
index 42c55d6d641578e6dd411ef48fe82b9c0b795d35..dfc462c7b96c17f3f4195be7bb342826d3da2d74 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1f496cd6123fac67cddb42cabbb73675d28aa2c2..c28977272a0ffacb23a5b0dc32677ad72ce1ac85 100644 (file)
--- a/lfs/lmdb
+++ b/lfs/lmdb
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 628dafe6fdefb16c05484f18391a904ec1200c88..cfea09f86b3f98c23c7b035cc3dcfa505b4a2a29 100644 (file)
@@ -78,7 +78,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        @cd $(DIR_APP) && chmod 755 install_logwatch.sh
        cd $(DIR_APP) && yes "" | ./install_logwatch.sh
-       
+
        #sed -i 's/^Print = .*$$/Print = Yes/' /etc/log.d/conf/logwatch.conf
        # comment out line with unused example
        #sed -i '/-zz-network/s/Service/#Service/' /etc/log.d/conf/logwatch.conf
@@ -97,7 +97,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        #  done
        cp -f $(DIR_SRC)/config/logwatch/dialup /usr/share/logwatch/scripts/services/dialup
        cp -f $(DIR_SRC)/config/logwatch/dialup.conf /usr/share/logwatch/dist.conf/services/dialup.conf
-       
+
        -mkdir -p /var/cache/logwatch
        chmod -v 777 /var/cache/logwatch
        -mkdir -p /var/log/logwatch
index d568d4af597ac865243ca62f85e46ca898eceece..de18f09d8877b38a5fb433055f63c633860487a1 100644 (file)
--- a/lfs/lshw
+++ b/lfs/lshw
@@ -25,7 +25,7 @@
 
 include Config
 
-SUMMARY    = HardWare LiSter 
+SUMMARY    = HardWare LiSter
 
 VER        = B.02.19.2
 
@@ -37,7 +37,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = lshw
 PAK_VER    = 1
 
-DEPS       = 
+DEPS       =
 
 SERVICES    =
 
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index fc87e333a4f672760ff2399eecc71106d04f58da..8e5b9eb6e98f78ef1ce86f9ba7153a43b52bd359 100644 (file)
--- a/lfs/lvm2
+++ b/lfs/lvm2
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/lz4 b/lfs/lz4
index b09191c5e7a94d2e2abeb6f02b39fbb1ece901fb..2c57a6d938cba34015c7964f3e5ab96b61017406 100644 (file)
--- a/lfs/lz4
+++ b/lfs/lz4
@@ -51,7 +51,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3c2d8154253e176c672fc4e77f94a539c501f573..4000a1e31d3a6e12b679c7544d093f572b33c576 100644 (file)
--- a/lfs/make
+++ b/lfs/make
@@ -69,7 +69,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/mc b/lfs/mc
index d8324e898c1ddda8236f5e19027ffe81cec27dec..55cd5d4385252f6d7f96c22fc2b5c0c2fbe3e6bd 100644 (file)
--- a/lfs/mc
+++ b/lfs/mc
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 72123c91587266217202d6e5e2d40d1ff45eb439..f5a83cbca829d7d6421fc4f669f23c6a283164cc 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c42ad8d59a3f1544385dab3fc25a993dc19584ee..ece902fe06e1c7ada299f4896212e0c6c8f9e1e2 100644 (file)
--- a/lfs/mdadm
+++ b/lfs/mdadm
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 310129658b923492ac5e991e58269beb48761c0b..e974532265a4697e5ba0a2899ae430f6797e2d3a 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c8cb05559cda97ce58e242021f380ad2ed2399ff..9962736843d43dcb6f397fe4ef61c60a29e11960 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index b84b07a831cb4505c917c2ad1d6a4aa679323d56..490ff72f5ac2c5157bed432f57d249cf8dcff111 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -93,7 +93,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        #install initscripts
        $(call INSTALL_INITSCRIPTS,$(SERVICES))
-       
+
        #install backup definition
        install -v -m 644 ${DIR_SRC}/config/backup/includes/minidlna \
                        /var/ipfire/backup/addons/includes/minidlna
diff --git a/lfs/mpc b/lfs/mpc
index f8643f0941e514e7643f8fdffa35d35398367d95..0d35185522d78c31bd889a170ef9db41b9fdc72a 100644 (file)
--- a/lfs/mpc
+++ b/lfs/mpc
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/mpd b/lfs/mpd
index a86f2852dc9bb96ee276ce8c74cd9ab4cd7f32ab..29167dae103598f9f519da46e91fd367c7255a9f 100644 (file)
--- a/lfs/mpd
+++ b/lfs/mpd
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Music Player Daemon 
+SUMMARY    = Music Player Daemon
 
 VER        = 0.22.6
 
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index fc8a1dd596e04c2986edb5dc266c3816476d3472..ce2296917692cfb1ef9ccd9696264a9ba9d656ae 100644 (file)
@@ -46,13 +46,13 @@ objects =
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
-md5 : 
+md5 :
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/mtr b/lfs/mtr
index 50fd054a883e1f449c8f5954decf3f3965efd157..6095a29ee5093ebbcc6f9fffcc1df2072b27ce4c 100644 (file)
--- a/lfs/mtr
+++ b/lfs/mtr
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1ce0e1ce5b1b2a786b4892a46d84ce0209a880a0..97d91bcbafa9e54e1c0078f8a50b25ee77afd2f5 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 140db54c8b112f2aea178e314f5df55f5f07aaf3..47ad3275c770733fc2969a137033d8ce55c2abf0 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index cdbe747b4370374570263bc2feb65546b3cc2f0d..f513d03005c29ec79670bec494aabcb78a4d85b1 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c994706ddf3e58a59b32ab09dcc4f2d50703d253..f0f06365c78bb5087dc3fc06a5d6cdd12579125e 100644 (file)
--- a/lfs/ncat
+++ b/lfs/ncat
@@ -81,7 +81,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ncat-7.91-fix-a-unix-domain-socket-crash.patch     
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ncat-7.91-fix-a-unix-domain-socket-crash.patch
        $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && mkdir -p build
        cd $(DIR_APP) && ./configure    \
index e75187317d2f413ea01bc982172ad97819376313..e96e84a25f404dd8996f62862928155f3fbe1beb 100644 (file)
--- a/lfs/ncdu
+++ b/lfs/ncdu
@@ -37,7 +37,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = ncdu
 PAK_VER    = 2
 
-DEPS       = 
+DEPS       =
 
 SERVICES    =
 
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e84376a71cd5662187fbc322e316e9d855180b2c..3c7f5533a1a5e21e3a45699d5aa7b653d3df0455 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index f16d670f72421c550e4f317aadc57d1f24fdb958..1e8804826ee89ee92672f9fa74d348a7b49d73cc 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/nfs b/lfs/nfs
index 9ebc3b6600d962d837bd8972bda92e5e8d34739d..4f580c88136ee65690ca3c3055ac5ce2f78cb080 100644 (file)
--- a/lfs/nfs
+++ b/lfs/nfs
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ed9f8b77806895ee79faa4a83622ee0aef971164..692212afd8ddbe70ed6d024321188d1dce05505b 100644 (file)
--- a/lfs/ninja
+++ b/lfs/ninja
@@ -83,7 +83,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && python3 configure.py --bootstrap --verbose
 
        # Build ninja
-       cd $(DIR_APP) && ./ninja -v all 
+       cd $(DIR_APP) && ./ninja -v all
 
        # Install ninja.
        cd $(DIR_APP) && install -vm755 ninja /usr/bin/
index 3f0ae81341c71e54bf6067862b2775781219b8fd..0ee7dab93dfaee5c0f7192cf4ddff6fa281cd81f 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/nut b/lfs/nut
index 625f7f094580616f48ffea5980acb0cb8f28a7d4..41957de88de2d34eb5869c115f3c44fceb130315 100644 (file)
--- a/lfs/nut
+++ b/lfs/nut
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d1c800a61140f532b55b1967f5d761eec13da300..1f7db9c5043259db4f44278be102e1fd1b6f39bf 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 91c3baeb62c0fad531451ae7107c711111202fd5..18d526c2c758212e185209abf32daa47e2044684 100644 (file)
@@ -62,7 +62,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 md5 : $(subst %,%_MD5,$(objects))
 
 dist:
-       @$(PAK) 
+       @$(PAK)
 ###############################################################################
 # Downloading, checking, md5sum
 ###############################################################################
index bce8b618d654d02c2d3e262ebe822772eca24609..4e85b9612eabe2966ca4897f39c42d323239d693 100644 (file)
--- a/lfs/opus
+++ b/lfs/opus
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
@@ -69,7 +69,7 @@ $(patsubst %,$(DIR_CHK)/%,$(objects)) :
 
 $(patsubst %,$(DIR_DL)/%,$(objects)) :
        @$(LOAD)
+
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
index 3711bde9870b348840e36043251fc0beff6283c2..c60d17a4dc78f44570b930d2e2279b4b69c3be20 100644 (file)
@@ -38,11 +38,11 @@ PAKFIRE_VERSION = $(VERSION)-$(BUILD_ARCH)
 
 install : $(TARGET)
 
-check : 
+check :
 
-download : 
+download :
 
-md5 : 
+md5 :
 
 ###############################################################################
 # Installation Details
index 91b4c45c2e45ca335d4555eda23305d0821410a6..ae57a9b2c32c1ae46b707c36082a47384f2ba18f 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index fc77f4b3ea9bf2a1d222025f8f4b461a902ad0ee..e2d070c3e8f7e35756986372f876913f8abf6b77 100644 (file)
@@ -60,7 +60,7 @@ md5 : $(subst %,%_MD5,$(objects))
 
 dist :
        @$(PAK)
-       
+
 ###############################################################################
 # Downloading, checking, md5sum
 ###############################################################################
index 6b14079d46b61e832ea062479dda66b914748a7b..c428c3a15e4fccf845de1b2ea14076997711fcc5 100644 (file)
@@ -51,7 +51,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh Archive-Tar $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index 4426829673c6ea3da21d6d66b3334e17ca90bfa1..1b6f867611518f130e46d0fdea784ace163b73ee 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh Archive-Zip $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index c69d24333c49d0e67910988af937c06c1f15e0da..246a1377f3730b6bd56d813d3542c83cd5b52429 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3e37f181f9f806242072ccd7d115eb9844a655da..a0d3a0ec77f4e593f745c7209189183d252c9f82 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh BerkeleyDB $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index 4d52b16b04ae3df9eae1fca0f08d9ca6b54a1f70..0dcb527b9474b530aaf1743bd9edc977529c0bc7 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 136bc71d0d512667e1c8a4fd41b3bcbc4c5da5e6..703be037241340559b14abfaea53ad8681a9bd0e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh Convert-TNEF $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index 95f6bc4bb903245d384985b3c0c97dac224873c3..d9f02ae24c6119f76d83adc0a43bc364a634f01e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh Convert-UUlib $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index 50500dc505a7b2eb0617459ca496422a4787ed37..3605aa553be7b0b34e864a170399d6721fd212ff 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6ab212450753bba645e3a08a7b5f6a5d78fa2190..fb05a5aca0254550b1329e711cbf24719669391b 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c310404ac2697b15cf0ddb51980fa7b9ae4b9f48..f98e3c354b6569723359f4efa1a3369d7b37e735 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d277b9e2f911a8c12313800a69b0c96713fd6a98..92114979551f1bbf95825f559c10afdd45683fec 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh IO-Stringy $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index 1f98a7f18f947d1a6967cdff142d6c203e3632d4..32584849b59310e03b13d3cbf0237a0220ba3f5a 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 66c7c446f27915cf666bc340d1e00632b5f2c903..706597f443b893fabb8407d42bda396f45d688a7 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 554d9e8d6eb9706ee4c050af252969783f77d9bd..952327e6aecfaf0f6d13d1ef29eb2a076d579914 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-#dist: 
+#dist:
 #      make-packages.sh Net-Server $(THISAPP)-ipfire-beta-1
 
 ###############################################################################
index 9b3ac5671caac88e75165628f5177c8d4062b4a2..e43870bfe2a8130bb5de582d8e67acd2e7ceb3a3 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 612d84db16fc77bf4d1112ac51bb377760650a34..f69a1c6e6cff01673b5f9720b1418e5821f42138 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a2a51ba28cee535deed65e7673317842c60076f0..889ae22fb0a4a85083418622e655e904b220b788 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 80dbd91aaf600f892011465e94cff68cd5c575fc..289c03f20629e5095d8e9167e5c8ebd468738598 100644 (file)
--- a/lfs/pigz
+++ b/lfs/pigz
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9fef56729f9d7bd04f18d7a3becbb232a62a353e..7d62a0cda4dcbbafb4c85739819976b17ddbad3a 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 728c71cd2f391d6d6cd1309d962b20d08ed158fe..29b0a3af061c743256087b4d6110ebe984c89dd7 100644 (file)
@@ -80,7 +80,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c218537975009636f938c6885dab38dc52590ea3..0e21923890766e0991ffb3474d603e5b9f08e6dc 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 024f249bec15d882bc8a364c92644da97ab6bae2..e3fbc4020dae03116fbb319519547ab2e38d4ca8 100644 (file)
@@ -29,13 +29,13 @@ SERVICES   =
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
-md5 : 
+md5 :
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9250f3de5cfadcb727f88570d98246bc6fe96434..712469c7055545cbdad90d2af979753445b9d533 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d08d21a00052bb8ac81546274b485f02a651905d..a9b19713d8119cfb05f9829af6d28ec0d041a5e1 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3308e1abe8b141d7d5d95d982d7e16e30a468caa..2100e54fec76c83b99b70e16c7032daf79bce4db 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7edb926ac46f2a4f27dfe768ff160c5c0e0c7c80..c4e5ffdc68fa5bb8af90593c5a76a78ee3e7e373 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e29b811304b7d95e1afdcfc5f46c51cfc2998403..f5856ab343eff1c8ee9a86e69e7b449ce06a518d 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 48d6187aec5195add94fd847f8ef3bb06d470600..e15d676685799644540617d059149e30d9b8396a 100644 (file)
--- a/lfs/qemu
+++ b/lfs/qemu
@@ -71,7 +71,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 62523ab3ddf40715d4cc305d56d9d9b6cbf7d5c6..d6f012b69ba1ca9ef9b0be3a13e7a7941c34704e 100644 (file)
@@ -32,7 +32,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = qemu-ga
 PAK_VER    = 1
 
-DEPS       = 
+DEPS       =
 
 SERVICES   = qemu-ga
 
@@ -42,18 +42,18 @@ SERVICES   = qemu-ga
 
 install : $(TARGET)
 
-download : 
+download :
 
-md5 : 
+md5 :
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
 # Installation Details
 ###############################################################################
 
-$(TARGET) : 
+$(TARGET) :
        @$(PREBUILD)
 
        #install initscripts
index a1be60a0a2180d019402f7e6b8afcc5248cea56a..9217157642ef95e46f44c55a8968060d9c07d1aa 100644 (file)
@@ -24,7 +24,7 @@
 
 include Config
 
-SUMMARY    = Transport independent RPC portmapper 
+SUMMARY    = Transport independent RPC portmapper
 
 VER        = 1.2.6
 
index 714e14c1a3b6bd52ec88d2a6bb9fffd7f74c8d96..066a320c343b9849a700169bb770a0cc96a19ba6 100644 (file)
--- a/lfs/rsync
+++ b/lfs/rsync
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c1d39793ba1afc761831a55dea56fc221e79ad66..7aef0f6d2ef59fbc84cd437c1f76658e1c3ae259 100644 (file)
@@ -53,7 +53,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index c458db427701099ad87f1224b2bbdccba6c10536..da18dd684c3f4d13b651144bfdbec885ea015368 100644 (file)
@@ -53,7 +53,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 9693d8abdd2b30a6a32a87bdb6651259a88eea91..3db209d855177acbf1989c1dd81d20f4296b9750 100644 (file)
@@ -53,7 +53,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index f7d34b6d2431fd5eb5b63e8a2dca957af848844f..fe8ec23ea5b3dda9673021ff96113292d51d46f2 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9bd1b3dbe14cbf0ad9d613ccec44278ff22da7bf..2f1381f36614b870651cc6722b0e9d192094219c 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ab7b99836734dde4999f33f8e5e6e327de65616a..6b5a36d22e65b855aa0dbf2e7583be0dab2a8fad 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ab619bda07fc26363d951281c79fa38c6cf879e5..d944b3840499e206455ca89a198eb0f1e9a1b59c 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 93a87fd09ad0709c3c54d21b30cbf471c79dcda8..c5f41406753f63f896dd226c57f9611564e02a53 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index abc4b187d70cb8ffe9257de23e952a667d38eea9..03accfa70ab0b15fcdad95434ccef93d403f38b7 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e16c1e7140e95a8588687c31581150c68226bfee..86de02a0da46b336f22899c909abeeb1a35b3ef6 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 4abf4fc58ade1b96e54431b1f4d9b3eeea198a8f..6526068e1d299161ff9f299a5ea01f759ec91171 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ed30b18efd7950b989c718f2b9164d0e73dbe6dd..99d81685f478f2c1f7b87c63c4d6b6c9eb1b7020 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 5ecb4d0a2dfc4cf7cd01793729d64d6dcffc7622..2b93d1ee9ff26eac58058eac538f39e4b6d2c5d7 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 41841f59441cd127f13c9d027918a4df2e28906f..3971b789fe3fc201aa1f871bb4477094916fbab2 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0cbcccf38dc3b93d31999f2f306ae1a4f85248d9..283a969397bfda346c1e3136e9ea57b7eab49e2f 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1a6e4886bc9eed781eb7de2d6ad3e2cc269960a4..29abc080ee1614035a64e20bb27af339d77a9405 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6412cec845677d4b32f201293450391e596861f6..1533e837e3f5876216b01673e527f7c3390b462d 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 895ffe69317038ef3d0e9ac6ee4d88be4e077f02..0ce26c9c41ce00d9d30f7ff8afcdd95db4cda950 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7b8713f2e13195c43acc29afa2112cf1704e9ae5..baf5c3beb7714f770bbf56102fa738db835acca7 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 80021a4eea084bcbd8729db7e21213e67c8301ff..617176ca59e92f7e7194895075d4c658100d345a 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 6622a5893194d7bb8f5dc90adcf081afe6ce1765..787802d073317a1b00c483c4af7598787a4742e4 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 84664ece2c0c544a7096bbefc8b935947f78bea3..8141fbe0bb9cf529701f74f25a7c1cb91e29c176 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0b56c7a55bafb8876062a6e727b8c3cecf7160b1..a12f463febf726299ef22f8cb47c0298a23fd039 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 26aa071bb8d0c753bc5b6285bac25de46792659a..79fa667904731bc0ffb0f065bed38f2ef36a5c7d 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1c8eb304b41d3be390c6ab9236df4cf1c0f37115..501331775f338a81895f0ba8fee9b75b710c1ec7 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e2ddc7addd279f03067cf8facfcae56869c0cc53..1a07d202a18592ae5d291d47f9427d7f4462ef84 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 37235cdee694ce02ce7d782585ade4331ddd3494..0a00ea23245725fbabe87b7daec59cb959aefb8b 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9d06bc6c458ee2eb616c40fe83fbaa95fe9574fc..df9e2120c5976f45787a0f5da177ce9bf8467885 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 56acac67ab02e125a4e1a720db5b6e91b9a765f2..d0fa441c311ae97f9fa48430e3346cc99deef641 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ad407a0132cb6d1b7168ff1d103efe87bfc1e6dc..609f84807adffda858fa3bd98e7213206f54b853 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1c93e465351973070398e0c49b8e9c4a302324c0..971a8463c98d95708794020d36c9d2df39e84f1e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ac7288bd4f75751aad5f67f3c27c7a1990bdb284..21d4dcc3b91e4fdc2f13ef5825825f4900f02188 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 078e168a1af2a1cd65cfd06c6fc2ebdb5324006c..225a5af0b4e99a5ae56522293b8eace477a73e9e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7b0fc7cb9f08a00dc7256f1c11e27de9c4fb8d94..378fb715f781e38a0d1ae206cf98af399a72c6eb 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c20958cb8fcbdcf0834baa10479ed55f6dfcb8d9..d268e5290a0330c05aea0e90f3cf3249cfd7bb49 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 25746422370ae192c8a4f4547cea93a7ddfba238..6ff5621bda16580c691672245d1bbf256c55ec81 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d5dcaa6bbea6b4954c1313674561ca0c6d5994cf..efc7324e71900d0a5d7a26e27b46e0bcd525612b 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 77575d9134280c276061ba9064e4d17a0b379206..f7362cb2806ef537981a5f02318a724431481d6d 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 808cbd7e9248cb235625228d45bd61520b39bc98..26e50d79273ee3e9732dfddb1dcd367897e89424 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index fdacf44258f3e393434f1ac714ac7bac8b0e067e..7447f916056cb12400090dbf86d349d5e1f690c3 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ed9da7e899483d7c0ca8dffb9fbadb34f4c7796d..a6080b8824e465bb7b67830cb4d1ea724083e22e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 8214139257c9a06fcb710b57cf618150fbc7f7b5..6f29671f29647d55adb57161421519402e17973b 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9118cbd34bbeaaa5df2544fa027af6917069dde5..e5199cdb70cee90bb3683c8c8225ba0f53110101 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 596d33877aaf7eb61520f629a1ef4fca4d70600e..4f02edd2c456c75935b68fd562a54ef688e8cb59 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index f1d4a62e1938c31947e26ec511fe61d69ba33b8c..7151c51cbe8209a829071d92b4cebf9ac95d0ba6 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a4ef4ea459d9a14c96f2523a14fc3112dd63de04..2d5e4ea7b72e952932f8ceeb00c77631b8569922 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d3d64d3f91a1321c2d1635380b0b8b36b55d4e5c..adf724b7790aec558a1e7761490bdd64c94e43bd 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9caa9d066fb0edd12fe491e9f8cc17a8d3670d8b..2495e81df994c945e5960a5ecf47df9e491ccf61 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c09317cf89e523f6e7b8c4048e9973147a3df543..c21392f2f48f8b37f614119365307eb0f0c982ca 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index b7881dac36bfac87171a4b08154d5078ff809a75..ec0dd56a14d572cdd6fbd422ead23dbbbc4578e0 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index b6925f1e80ebbb0f96dd0efe032a094b4a9cc9a9..361db01de5dc9e76272a872082f347a293c9eb28 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 33b350bd4d48d84c4d567c76604c021b2aeb33f1..c3a94444bdfffef7dcf0b586803450380022eb58 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0599eff9d99c0e4760f6ca0f60801a2a1f765c4d..e104fa4280001145ff9f3b8f2212adc9e95c166a 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 36a338b59ff57bc90a291cc409ef4998673d34de..fb2472e794a05c3e75d9e93c04f6e9b17fb73546 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a97b0fd0f117f3c14f647f5bae44d86fca358c22..58b82b9a2a8707cd7bf27cdc8c74358a808e4fa6 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c08bf2959873e5691fc116f84554b41d6fe14b0c..896fd14493a00eb834b8294b36babdad05921343 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c7fb73b7b63e09a628f715152b50960931e1f11a..8fb350baa6eb9022e2553d2f501d5b05ab7d502f 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 2f0da184dfa5696dad76733fe37420489ff11869..664122c4601f1bd786c4ae6cee749603e24139a5 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index b96c3d58b615096f5dfedb3f6e40e81836f7fee7..308d6590b74ddc1af3f461c9d127c7103c1713ce 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index cfd0e4ecb804a2d50879c8301a717fb35a2f3ad7..002ba486473bf9e87cf3d51b9264a60a7178fcc8 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1f62256272d469dca7715b6f0892bc497519fc15..06b72588fc54fee0154e29219b5bf6e69e9049dd 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d85f80174e31f6109e4666fbfafcf2b681f11126..2ac346d88cdebabc71367c7f4f51d1140454075d 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9b10afd247ed20d47b45e39fd715043fa5f9cc5c..a26ae74fc9c59ad77e9b2a537362887b728f6015 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index da430436a9b32cf80049f375ab5493cff3f76c20..f2db33894b8b3bdaf0d29fa119c27d8a8405efd6 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index e3ff37223f7c8420253da7025ab0c13d3da85f8f..67a76ab31342d26fe133c6e484879193083051a5 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1d758dea269fe2be21f297b55a1e77f1424a89de..96af3d766809f5994ea53c86e11cf93062aff801 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a04f3bc4cdda839a6a4171e30f9512bc4b9221ac..00868589e4538fd596dc0caaa22b7512b7454c20 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 79a354cc6337da007b1fcf2912ae7318d3dc0f23..e1205ba5d53ad3ebfc1f1c98b899ea53e3e509fb 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ae0706a65f1a8e774c3d5165911b26f64e0819a6..2785e3ffc8882f9ce96421d37fe2ca7722d394ed 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 13e638e28de949b45971eed6f98674b936507ab2..b3fbd3c7fa00939d6b9645b538a91c97a3ecd5f5 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index aa661f46e8e1fcc729bfea20d322ef01157b1876..4f55e50475dbfbf6953e8acc86ed9c1c46e941e7 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 03d06f7f2c3db6a7056b4ddbd07c8fca2aa0f96f..34a5e8c7323bb85a8082c44bfa0f31f958d3c9a8 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 8f8590c8392081df2617fd262c49eb8634edaa07..8791096f82e080055303f9f1693b71501fbc508e 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a49a7ad847259fdfdca05ae93fc5cbcee4f2cff2..afd16d9ff5e15e036587579e1d8b98433c7431c3 100644 (file)
@@ -52,7 +52,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1c3ce411538f7d7af95205f078d7c981e74f7e03..a0455bac4c30c3494fe36587266d564b2ec612f9 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 0fdafbc25c458b280111443ba21b4248ad11a657..a23bcf50ba09e5b3d95d74bec9d6c590d18839dc 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 68fd6ba7bdf8d613ab6d2adb423c0362409ea8cf..19b823fd48bbe17a4c40aadcd3b87f3a678ffecd 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c171761ad576cf861c7a106d515259db7378f4b5..b3f2053299c2482502f42291323686578a9c840d 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index fe124c0c6ce11ff2a221134c49fb1d5e4ca909d9..03ddaf709c4458343ee56fde345cc64416b01db0 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1d7a215329e9abd0cbef06af90ca811777241a63..0b6ec235df7d38d33dfee9d88eef103464e2bb92 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 58ed4626a704c60a98da5a5b945b2fa01f66ddfb..5d4bf9742197d0aa9b11a4f3a171acadd3f863a4 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9177af1bf20d2b33f8df205e07220689f694b032..cb296e416c635742d4dbebf10d740467323a8db8 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 5b120effce6770d2540b99bf586553de864cbcbb..67e1f16a6da4b71a5af24bdf9e6949ff31b40d9d 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 85b3f8ffbc6ff16722e614cd925f67e07760b0a3..64e11632125220b1cae379b8f5136ef96512ad88 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index af4cd98edc7fcb0444294f2a648fb0f68432cf00..87e5ebabde4cedba321ac1338e3c9a393aae8282 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 87aeacc5af87a90eddf8b7b5b18c59faf5a8a75b..24d4e076d2bd936a708ee01b97395433e7152046 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index b20ce29f9b27af877dbf0793daf4e486fe22155d..b9f0b84747e945cab3c86884ad6253b7f2ead9bb 100644 (file)
--- a/lfs/sarg
+++ b/lfs/sarg
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index f6fb52db08ef8e3d408724a5fb9ff7de30bada8f..46b71fbdcb4c30848dfb2b152549f503a17f8293 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/sed b/lfs/sed
index 9c5b33e4ae74730ae4cccda1bf5463d80ce43060..12aa644a0829314bb7595104a8aaaf68a5765cf6 100644 (file)
--- a/lfs/sed
+++ b/lfs/sed
@@ -41,8 +41,8 @@ ifeq "$(ROOT)" ""
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools
   EXTRA_CONFIG = --prefix=$(TOOLS_DIR) --disable-nls
-  EXTRA_MAKE = 
-  EXTRA_INSTALL = 
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 endif
 
 ###############################################################################
index 748b323d0b33dc7825855ed7a02a1c8511c8b465..205bff9629212af278299704438042aa62fda76b 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 4229497992300f491878cf0bdc4d64035daf6570..1956d4e7b3546391a803ad757e5799863b547bf8 100644 (file)
--- a/lfs/socat
+++ b/lfs/socat
@@ -37,7 +37,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG      = socat
 PAK_VER    = 2
 
-DEPS      = 
+DEPS      =
 
 SERVICES   =
 
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/sox b/lfs/sox
index 2ca7c204e568295a03890c705b853795cb0a7977..8544fe1071c757e581a8f6bb5836fb5551b34422 100644 (file)
--- a/lfs/sox
+++ b/lfs/sox
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index f55e3caac7af6fbf97be43ed3d8213b437b97406..fb4be2973550da6e7ba3d0fe0c4c85d2e9b86647 100644 (file)
--- a/lfs/soxr
+++ b/lfs/soxr
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 53898a11e34fbeb612bceed951ec4a7b353408ba..cd9d03f9fd868c16fee9a35c386f7e8df035a110 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 36cc7ccd8ec5aeb4296e7f3822a33143d53b7f71..35f4e8a16d7563b80ff99c5207636f8fc4858229 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index f35efaaf25675a38ffa6ce918ce541a03d2e20ad..04f0708fffafbc68104db869e3dc8694051c8552 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 63578a354be197f445b219ccfc885c1c1958889e..3cf876d757c2d210841e4eaa65c0a18578261862 100644 (file)
--- a/lfs/spice
+++ b/lfs/spice
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 4b723a8e17b769279550a1912553f60796d4d135..47c70fc6401695fec5ac28b5053d18ea4b41ed45 100644 (file)
--- a/lfs/squid
+++ b/lfs/squid
@@ -178,7 +178,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        chmod 775 /var/updatecache/metadata
        chmod 755 /var/log/updatexlrator
        chmod 755 /srv/web/ipfire/html/images/updbooster
-       
+
        chown squid:squid /var/log/squid
        ln -sf /usr/lib/squid /usr/lib/squid/auth
        cp -f $(DIR_SRC)/config/proxy/proxy.pac /srv/web/ipfire/html/proxy.pac
index c73e37da8acbf110195c8c2f1c3543c566b01064..2587f086d20a06f0ca592fc514610963e47d0588 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d5eb30377fe2a2154e390009878d6779342e4404..4c688859f2c19187b5f9869c1121e94ddd0f6894 100644 (file)
@@ -38,7 +38,7 @@ CFLAGS    += -fcommon
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE) 
+objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
@@ -104,7 +104,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cp -f  $(DIR_CONF)/urlfilter/autoupdate.pl /var/ipfire/urlfilter/bin/autoupdate.pl
        chmod 755 /var/ipfire/urlfilter/bin/autoupdate.pl
        echo "1.5-beta" > /var/ipfire/urlfilter/version
-       
+
        # Wrapper
        cp -f  $(DIR_CONF)/urlfilter/redirect_wrapper /usr/sbin
        chmod 755 /usr/sbin/redirect_wrapper
index f9a585572afc4478574873f2e7cbf8bf4c5294e1..740e8fc46c4dcd69f892724e022455fde15c51e0 100644 (file)
--- a/lfs/sshfs
+++ b/lfs/sshfs
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 48ee91305d2e48b6181f8bbc0e9a0cee035251a3..a0f9338431bfbfc470b96967513482784a518c68 100644 (file)
--- a/lfs/sslh
+++ b/lfs/sslh
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 3876060ce2250766f65e7e550263bd32344a1e1c..c72b8599bd8947e5aa9dfa05b7c1c41e422f2829 100644 (file)
@@ -116,7 +116,7 @@ endif
        mv -vf /usr/local/bin/ovpn-ccd-convert /usr/sbin/
        mv -vf /usr/local/bin/ovpn-collectd-convert /usr/sbin/
        mv -vf /usr/local/bin/captive-cleanup /usr/bin/
-       
+
        # Install firewall scripts.
        mkdir -pv /usr/lib/firewall
        install -m 755 $(DIR_SRC)/config/firewall/rules.pl \
@@ -142,7 +142,7 @@ endif
 
        # Permissions
        chmod 0711 /var/empty
-       
+
        # A small hack to include /root to the iso but not all of it's files.
        touch /root/ipfire
 
index 1c18b175212592833d683e7ed9a7cd2b5577293b..5c41bb10effc769d02ef725cca725be0af7f4316 100644 (file)
@@ -43,7 +43,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d6e1073425d7f2fa26044dd1f1a0af6b8bca975f..471f23f7197f1a7763721c3865b6d3b55887046d 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a185adef72cde8f4ecbb529007b28c8da0b4108f..e09e87955c9592f088b192f22a78c4aeac47fd55 100644 (file)
@@ -44,7 +44,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7b195bfaeb6e9668751fb42ccc581020bb56fe78..1045dd49cee4a8277aa3c7a09bb36a9a8367ce81 100644 (file)
@@ -76,7 +76,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && sed -i src/mountpoint.c src/bootlogd.c \
                -e "/include.*sys\/stat.h/a#include <sys/sysmacros.h>\n"
        cd $(DIR_APP) && sed -e "s/libcrypt.a/libcrypt.so/g" -i src/Makefile
-       cd $(DIR_APP) && make $(MAKETUNING) -C src 
+       cd $(DIR_APP) && make $(MAKETUNING) -C src
        cd $(DIR_APP) && make -C src install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 2a535e35a101c0c4daedf0840081d73981d33bee..536913b11b883ee5f1b72c024dfa30ac4314143f 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 032b8582ca30ec8a6846c24d862460751052da79..4df2d34cd71a80a45a104e7479165a1636cfb189 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 7bae0cc160fcbfd961b6613c4aa0c5ce78166455..64c556f7b4e63720246d8826aad87218895ef62e 100644 (file)
@@ -61,7 +61,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -102,7 +102,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/telnet-0.17-errno_test_sys_bsd.patch
        cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/netkit-telnet-0.17-reallynodns.patch
        cd $(DIR_APP) && ./configure --prefix=/usr
-       cd $(DIR_APP) && make 
+       cd $(DIR_APP) && make
        cd $(DIR_APP) && make install
        rm -f /usr/sbin/telnetd
        rm -f /usr/man/man8/in.telnetd.8
index 63ebd632a819f4ff767c5f72979fe6aeb44d6073..7efd3bd9bd282b676a68500418dac1695fa1c6b4 100644 (file)
--- a/lfs/tftpd
+++ b/lfs/tftpd
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 918712e77b14b0f960ca9d4b68fe6870bdf3ab22..f23450aa1ce31075d663affe8c660c534236837a 100644 (file)
--- a/lfs/tmux
+++ b/lfs/tmux
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 9334f47a25ae8184535e3d2026e494a159f40b15..8f1eb074535b910c48b1637ed658ba6b5cb7e8d0 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -82,7 +82,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-ipfire.patch
-       cd $(DIR_APP) && make 
+       cd $(DIR_APP) && make
        cd $(DIR_APP) && make install prefix=/usr bindir=/usr/sbin
        chmod u-s /usr/sbin/traceroute
        @rm -rf $(DIR_APP)
index f06f0be08d9bf160416d43c53dfc4ce4f0e3af56..2d048cdf9fdc9853072a873f5f9f01a0550f3d77 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 676fc4ab297f154e1713d0b649ae5d006650e7f2..81321babd67816d6f5d635af1761f56992a5cbc6 100644 (file)
@@ -57,7 +57,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist : 
+dist :
        @$(PAK)
 
 ###############################################################################
index b68cd6faf038a6e56a132091ee33b60649482f91..d081061fa30f85bf06eda8f67612b251528beaae 100644 (file)
@@ -72,7 +72,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -221,7 +221,7 @@ else
 endif
        # create an empty 128 KB File for the u-boot env
        dd if=/dev/zero of=/boot/uboot.env bs=1K count=128
-       
+
        # config (uEnv.txt and boot.*)
        cp -vf $(DIR_SRC)/config/u-boot/* /boot/
        # patch real Kernel version to uEnv.txt
index ab3353dba2e50258ab72bc601ef38801d1404e3e..07742a745046dfe356a774201663c399368dfa0d 100644 (file)
@@ -67,7 +67,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/vdr b/lfs/vdr
index 8cac181387def6086b105d1b05537dfdabc62baa..9e5e8ae85c2cb1872f4c028cb746a1b66e2003ee 100644 (file)
--- a/lfs/vdr
+++ b/lfs/vdr
@@ -81,7 +81,7 @@ download : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 54adcb2bbb21568e2fa321d671ba7d4206ed179f..1b128adac983cab23e71dc3bb832c3d7c28a73e9 100644 (file)
@@ -81,7 +81,7 @@ download : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index bdaf4ace86c403afbe855733464f43a793588307..760d5398c3897064e5ba9fc9b378da95873ffa3d 100644 (file)
@@ -68,7 +68,7 @@ download : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 5b67969a5aa70f58dae494e59632457f934d04a4..6c27e0e8ebcbc9fec9d045ef25d3c66832e71e05 100644 (file)
@@ -65,7 +65,7 @@ download : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index ee4590d7ae8cfb37aeb5cd7e93fd7d267c0b705f..c97a89ae3a97d76855125a2d646dd9492e3c40dc 100644 (file)
@@ -66,7 +66,7 @@ download : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 2abf8a943e334d88fdd8c68009f514967f0af43c..d877a0b680c8c6280ba180639178433b295ab48d 100644 (file)
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index d66a4b2e48cefc8482497c3026d0c275ed88fabd..79c1db8151468b2a574e575abe0d86508ab1d3c3 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 571703381d4793c314899c10dc894b07d523f541..b0716f3dc30f5dbc89295f44b873f8ede91f5848 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index c84de5abc51bf0392b43f1ef69d724d5965cf207..2488cd81ab3606cc6b012ebf88f0b5d9f1231403 100644 (file)
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -87,6 +87,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        #install initscripts
        $(call INSTALL_INITSCRIPTS,$(SERVICES))
        install -v -m 644 $(DIR_SRC)/config/backup/includes/watchdog \
-                        /var/ipfire/backup/addons/includes/watchdog 
+                        /var/ipfire/backup/addons/includes/watchdog
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 2db9cc76743e8b962a880d5b89587c1559e7f980..1c45c1670fa08493836d9b1925d113fbcac163d4 100644 (file)
@@ -43,7 +43,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index bce6d8eb862626fb55783c23a6a6650216f92863..36188e80a33256577e93c90ceea1bcc47d1fb130 100644 (file)
@@ -37,11 +37,11 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 
 install: $(TARGET)
 
-check: 
+check:
 
 download:
 
-md5: 
+md5:
 
 ###############################################################################
 # Installation Details
index a9beb54a17f1eaab21e3e41e30a09cc8b3160d96..2485d16365a91973461cb3d149c970ec9ba47149 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
diff --git a/lfs/wio b/lfs/wio
index 82df5f486f3ab24ef417063762deedba9841fb12..d30faea3cd68715ca33bc87be118dc134cbaa963 100644 (file)
--- a/lfs/wio
+++ b/lfs/wio
@@ -29,13 +29,13 @@ SERVICES   =
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
-md5 : 
+md5 :
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 54cf82ff7aa3e0f9e19a425159fc32f2fea1f84e..32204e984b7e11d2750512f89f31368957054f94 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 5ba90ea42eb9018dd5d6a2e0e3e232ec9c2a373a..6d8a940e5945ccf883508b92f4508a4015990a6f 100644 (file)
@@ -60,7 +60,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 1f92f69754012d2337f5354dc5eb4a5faa4638b6..0d919dd07708dd3ae06b60e5c347645c953403c1 100644 (file)
@@ -55,7 +55,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        $(PAK)
 
 ###############################################################################
index 45f5e9304cba7a947e2a7ec4583e5fdf46922f46..6a2aaa82a229a420585a515a3d3d051b79d3608a 100644 (file)
--- a/lfs/xvid
+++ b/lfs/xvid
@@ -58,7 +58,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index 20a6137a3c137517ef95ec03a0115a7d2e17231c..e8e90dbbc1f4bf6e87873c7a8373899f37e4ccae 100644 (file)
@@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index cebfc44f670484fc885d3d3a3e02401947b221f3..9d7c48facec9c47a6cbc85e486efa96b49bda1dd 100644 (file)
--- a/lfs/zstd
+++ b/lfs/zstd
@@ -59,7 +59,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
index a8a71b8932ed0cac8eccc117c950d995bbfc2dca..67734d0b8404aeb580982393bd71377e4dacbee8 100644 (file)
@@ -17,7 +17,7 @@
   Modified feb 2001 by Stephen Aaskov (saa@lasat.com)
   - Added daemonization code
   - Added syslog
-  
+
   TODO: Delete interfaces after exit?
 */
 
@@ -39,7 +39,7 @@ void fatal(const char *str, int i)
 
 void exitFunc(void)
 {
-  syslog (LOG_PID,"Daemon terminated\n");      
+  syslog (LOG_PID,"Daemon terminated\n");
 }
 
 
@@ -62,7 +62,7 @@ int create_pidfile(int num)
 int create_br(char *nstr)
 {
   int num, err;
-  
+
   if(lastsock<0) {
     lastsock = socket(PF_ATMPVC, SOCK_DGRAM, ATM_AAL5);
   }
@@ -78,7 +78,7 @@ int create_br(char *nstr)
       ni.mtu = 1500;
       sprintf(ni.ifname, "nas%d", num);
       err=ioctl (lastsock, ATM_NEWBACKENDIF, &ni);
-  
+
       if (err == 0)
        syslog(LOG_INFO, "Interface \"%s\" created sucessfully\n",ni.ifname);
       else
@@ -105,7 +105,7 @@ int assign_vcc(char *astr, int encap, int bufsize, struct atm_qos qos)
     err=text2atm(astr,(struct sockaddr *)(&addr), sizeof(addr), T2A_PVC);
     if (err!=0)
       syslog(LOG_ERR,"Could not parse ATM parameters (error=%d)\n",err);
-    
+
 #if 0
     addr.sap_family = AF_ATMPVC;
     addr.sap_addr.itf = itf;
@@ -116,10 +116,10 @@ int assign_vcc(char *astr, int encap, int bufsize, struct atm_qos qos)
           addr.sap_addr.vpi,
           addr.sap_addr.vci,
           encap?"VC mux":"LLC");
-    
+
     if ((fd = socket(PF_ATMPVC, SOCK_DGRAM, ATM_AAL5)) < 0)
       syslog(LOG_ERR,"failed to create socket %d, reason: %s", errno,strerror(errno));
-    
+
     if (qos.aal == 0) {
       qos.aal                     = ATM_AAL5;
       qos.txtp.traffic_class      = ATM_UBR;
@@ -130,17 +130,17 @@ int assign_vcc(char *astr, int encap, int bufsize, struct atm_qos qos)
 
     if ( (err=setsockopt(fd,SOL_SOCKET,SO_SNDBUF, &bufsize ,sizeof(bufsize))) )
       syslog(LOG_ERR,"setsockopt SO_SNDBUF: (%d) %s\n",err, strerror(err));
-    
+
     if (setsockopt(fd, SOL_ATM, SO_ATMQOS, &qos, sizeof(qos)) < 0)
       syslog(LOG_ERR,"setsockopt SO_ATMQOS %d", errno);
 
     err = connect(fd, (struct sockaddr*)&addr, sizeof(struct sockaddr_atmpvc));
-    
+
     if (err < 0)
       fatal("failed to connect on socket", err);
-    
+
     /* attach the vcc to device: */
-    
+
     be.backend_num = ATM_BACKEND_BR2684;
     be.ifspec.method = BR2684_FIND_BYIFNAME;
     sprintf(be.ifspec.spec.ifname, "nas%d", lastitf);
@@ -177,7 +177,7 @@ int main (int argc, char **argv)
   int itfnum;
   lastsock=-1;
   lastitf=0;
-  
+
   /* st qos to 0 */
   memset(&reqqos, 0, sizeof(reqqos));
 
@@ -187,7 +187,7 @@ int main (int argc, char **argv)
       switch (c) {
       case 'q':
        printf ("optarg : %s",optarg);
-       if (text2qos(optarg,&reqqos,0)) fprintf(stderr,"QOS parameter invalid\n"); 
+       if (text2qos(optarg,&reqqos,0)) fprintf(stderr,"QOS parameter invalid\n");
        break;
       case 'a':
        assign_vcc(optarg, encap, sndbuf, reqqos);
@@ -222,25 +222,25 @@ int main (int argc, char **argv)
     usage(argv[0]);
 
   if (argc != optind) usage(argv[0]);
-  
+
   if(lastsock>=0) close(lastsock);
-  
+
   if (background) {
     pid_t pid;
-    
+
     pid=fork();
     if (pid < 0) {
       fprintf(stderr,"Error detaching\n");
       exit(2);
-    } else if (pid) 
+    } else if (pid)
       exit(0); // This is the parent
-    
+
     // Become a process group and session group leader
     if (setsid()<0) {
       fprintf (stderr,"Could not set process group\n");
       exit(2);
     }
-    
+
     // Fork again to let process group leader exit
     pid = fork();
     if (pid < 0) {
@@ -248,23 +248,23 @@ int main (int argc, char **argv)
       exit(2);
     } else if (pid)
       exit(0); // This is the parent
-    
+
     // Now we're ready for buisness
     chdir("/");            // Don't keep directories in use
     close(0); close(1); close(2);  // Close stdin, -out and -error
     /*
-      Note that this implementation does not keep an open 
+      Note that this implementation does not keep an open
       stdout/err.
       If we need them they can be opened now
     */
-    
+
   }
-  
+
   create_pidfile(itfnum);
 
-  syslog (LOG_INFO, "RFC 1483/2684 bridge daemon started\n");  
+  syslog (LOG_INFO, "RFC 1483/2684 bridge daemon started\n");
   atexit (exitFunc);
-  
+
   while (1) sleep(30); /* to keep the sockets... */
   return 0;
 }
index 4867540bd338eb90cd71081f06d8430b5861a0fc..a40d4beeb64f62b76215b5a3684bd0d3f2f0ce8e 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 12a06acf20b3229cc4b7b74dc5b364a49925f5a6..1eff57799e59affd33e197d3f30f3331a2144814 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 2ff8a18a247647def4bafd6b77ed90bae55d58b8..e9295cc9c2cb8373d9e720f19ca9923157f59a48 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 8868750dbc59c02903ac0ab91156a558a8ccfe95..9351949317e49267d1dba058dfc93733098ab72d 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index e4d461d5734c1bcf4cc91790718f0e667a037a9f..11e898e2475987c2db69cf9a538869f53486e396 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index 0763a96e7ca2c89f1c7309b2233af241b41c24ce..4dbc05ae3fab017f25f53966cfb9b9ea3296218c 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 7ca1ab2c3d25d8f3d52a82f68add5ee1cf10b23f..0facf23d890264850e87c434e1ef2684ffcf3990 100644 (file)
@@ -1,21 +1,25 @@
 #!/bin/sh
-########################################################################
-# Begin
-#
-# Description : ANY Device Script
-#
-# Authors     : Nathan Coulson - nathan@linuxfromscratch.org
-#               Kevin P. Fleming - kpfleming@linuxfromscratch.org
-#               Michael Tremer - mitch@ipfire.org
-#               Maniacikarus - maniacikarus@ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       : 
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
-. /etc/sysconfig/rc 
+. /etc/sysconfig/rc
 . ${rc_functions}
 eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
@@ -56,7 +60,7 @@ case "${1}" in
        start)
                boot_mesg "Bringing up the ${DEVICE} interface..."
                boot_mesg_flush
-               
+
                # Check if an interface is there...
                if ip link show ${DEVICE} > /dev/null 2>&1; then
                        link_status=`ip link show ${DEVICE} 2> /dev/null`
@@ -81,7 +85,7 @@ case "${1}" in
 
                # Create & Enable vnstat data collection
                /usr/bin/vnstat -u -i ${DEVICE} -r --enable --force > /dev/null 2>&1
-               
+
                if [ ! "${ADDRESS}" == "1.1.1.1" ]; then
                        boot_mesg "Adding IPv4 address ${ADDRESS} to the ${DEVICE} interface..."
                        ip addr add ${args} dev ${DEVICE}
@@ -101,4 +105,3 @@ case "${1}" in
                exit 0;
                ;;
 esac
-# End
index 7a9889b5be9849be7fb20b1ced08d70e56b96048..c243ce1a7c9f4c6e9afff87c5d63a97d1ee0e84c 100644 (file)
@@ -1,15 +1,22 @@
-########################################################################
-# Begin
-#
-# Description : DHCP Client Script
-#
-# Authors     : Arne Fitzenreiter - arne_f@ipfire.org
-#
-# Version     : 02.10
-#
-# Notes       : 
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
index 656e6a7abe55a0ef29430d822e4dbf4239a89e55..7ec50f436b4920e232e4ba8ad590ae502f40d50e 100644 (file)
@@ -1,22 +1,27 @@
 #!/bin/sh
-#
-########################################################################
-# Begin
-#
-# Description : A collection of functions for the IPFire network scripts
-#
-# Authors     : IPFire Development Team <developers@ipfire.org>
-#
-# Version     : 01.00
-#
-# Notes       : 
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
 
-
 eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 eval $(/usr/local/bin/readhash /var/ipfire/dns/settings)
 
index 56f8ebb668248878dc3799c014c1c00d37822b67..38129deeb10e47451bd81d0fe55a2782de737d6b 100644 (file)
@@ -1,21 +1,25 @@
 #!/bin/sh
-########################################################################
-# Begin
-#
-# Description : RED Device Script
-#
-# Authors     : Michael Tremer - mitch@ipfire.org
-#               Maniacikarus - maniacikarus@ipfire.org
-# Inspired by : Nathan Coulson - nathan@linuxfromscratch.org
-#               Kevin P. Fleming - kpfleming@linuxfromscratch.org
-#
-# Version     : 01.00
-#
-# Notes       : 
-#
-########################################################################
-
-. /etc/sysconfig/rc 
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+. /etc/sysconfig/rc
 . ${rc_functions}
 . /etc/init.d/networking/functions.network
 
@@ -47,7 +51,7 @@ if [ "$TYPE" == "STATIC" ] || [ "$TYPE" == "DHCP" ]; then
                [ "${1}" == "start" ] && exit 0
        fi
 fi
-       
+
 if [ "${TYPE}" == "STATIC" ]; then
        if [ "${DEVICE}" != "${GREEN_DEV}" ]; then
                ADDRESS="${RED_ADDRESS}"
@@ -85,7 +89,7 @@ case "${1}" in
                                if [ -n "${link_status}" ]; then
                                        if ! echo "${link_status}" | grep -q UP; then
                                                if [ -n "$MAC" ]; then
-                                                       boot_mesg "Setting mac address on ${DEVICE} to ${MAC}"  
+                                                       boot_mesg "Setting mac address on ${DEVICE} to ${MAC}"
                                                        ip link set dev ${DEVICE} address ${MAC}
                                                        evaluate_retval
                                                fi
@@ -101,7 +105,7 @@ case "${1}" in
 
                ## Create & Enable vnstat
                /usr/bin/vnstat -u -i ${DEVICE} -r --enable --force > /dev/null 2>&1
-               
+
                if [ "${TYPE}" == "STATIC" ]; then
                        # Set the MTU
                        if [ -n "${MTU}" ]; then
@@ -123,14 +127,14 @@ case "${1}" in
                        echo "$GATEWAY  gateway"  >> /tmp/hosts
                        mv /tmp/hosts /etc/hosts
                        touch /var/ipfire/red/active
-                       
+
                        # Create route to default gateway
                        ip route add ${GATEWAY} dev ${DEVICE}
 
                        boot_mesg "Setting up default gateway ${GATEWAY}..."
                        ip route add default via ${GATEWAY} dev ${DEVICE}
                        evaluate_retval
-                       
+
                        if [ -d "/sys/class/net/${DEVICE}" ]; then
                                # has carrier ?
                                if [ ! "$(</sys/class/net/${DEVICE}/carrier)" = "1" ]; then
@@ -182,9 +186,9 @@ case "${1}" in
                            echo_failure
                            exit 1
                        fi
-                       
+
                        eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
-                       
+
                        [ -c "/dev/ppp" ] || mknod /dev/ppp c 108 0
 
                        # We force the plugin method, anyway.
@@ -192,7 +196,6 @@ case "${1}" in
 
                        PPP_NIC=${DEVICE}
 
-
                        if [ "$TYPE" == "pppoeatm" ] || [ "$TYPE" == "pptpatm" ]; then
                                PPP_NIC=nas${ATM_DEV}
                                DEVICE=nas${ATM_DEV}
@@ -245,7 +248,7 @@ case "${1}" in
                                        modprobe 8021q
                                        vconfig add ${DEVICE} ${IPTV_VLAN}
                                        if [ -n "$MAC2" ]; then
-                                               boot_mesg "Setting mac address on ${DEVICE}.${IPTV_VLAN} to ${MAC2}"    
+                                               boot_mesg "Setting mac address on ${DEVICE}.${IPTV_VLAN} to ${MAC2}"
                                                ip link set dev ${DEVICE}.${IPTV_VLAN} address ${MAC2}
                                                evaluate_retval
                                        fi
@@ -335,13 +338,13 @@ case "${1}" in
                        else
                                boot_mesg "Bringing up the PPP via ${TYPE} on ${COMPORT}..."
                        fi
-                       
+
                        ###                      ###
                        ### Configuring the pppd ###
                        ###                      ###
-                       
+
                        ### Plugin Options
-                       #                       
+                       #
                        if [ "$TYPE" == "pppoe" ]; then
                                [ "${METHOD}" == "PPPOE_PLUGIN" ] && \
                                        PLUGOPTS="plugin rp-pppoe.so"
@@ -351,7 +354,7 @@ case "${1}" in
                        #
                        #PPPOE_SYNC=-s
                        #PPPD_SYNC=sync
-       
+
                        ### Access Concentrator Name
                        #
                        if [ -n "${CONCENTRATORNAME}" ]; then
@@ -378,7 +381,7 @@ case "${1}" in
                                AUTH=""
                        fi
 
-                       ### Dial On Demand              
+                       ### Dial On Demand
                        #
                        if [ "${RECONNECTION}" != "persistent" ]; then
                                if [ "${TIMEOUT}" != "0" ] && [ "${TIMEOUT}" != "" ]; then
@@ -392,13 +395,13 @@ case "${1}" in
                                        DEMAND+=" ipcp-accept-remote ipcp-accept-local noipdefault ktune"
                                fi
                        fi
-                       
+
                        if [ "$TYPE" == "pppoe" ]; then
                                ### When using pppoe-plugin the device has to be the last option
                                #
                                [ "${METHOD}" == "PPPOE_PLUGIN" ] && PLUGOPTS+=" $PPP_NIC"
                        fi
-                       
+
                        if [ "$TYPE" == "modem" ]; then
                                PLUGOPTS=" /dev/${COMPORT} ${DTERATE} connect /etc/ppp/dialer lock modem crtscts"
                                METHOD="PPPOE_PLUGIN"
@@ -406,7 +409,7 @@ case "${1}" in
                                PLUGOPTS=" /dev/${COMPORT} ${DTERATE} connect /bin/true lock modem crtscts"
                                METHOD="PPPOE_PLUGIN"
                        fi
-               
+
                        ### Standard PPP options we always use
                        #
                        PPP_STD_OPTIONS="$PLUGOPTS usepeerdns defaultroute noipdefault noauth"
@@ -422,7 +425,7 @@ case "${1}" in
                        if [ -n "${MRU}" ]; then
                                PPP_STD_OPTIONS="${PPP_STD_OPTIONS} mru ${MRU}"
                        fi
-                               
+
                        ### Debugging
                        #
                        if [ "${DEBUG}" == "on" ]; then
@@ -430,7 +433,7 @@ case "${1}" in
                        else
                                DEBUG=""
                        fi
-                       
+
                        ### PPPoE invocation
                        #
                        if [ "$TYPE" == "pppoe" ]; then
@@ -444,7 +447,7 @@ case "${1}" in
                                PPPOE_CMD="pptp $PPTP_PEER --nolaunchpppd"
                                METHOD=""
                        fi
-                       
+
                        ### Run everything
                        #
                        if [ "$METHOD" == "PPPOE_PLUGIN" ]; then
@@ -536,5 +539,3 @@ case "${1}" in
                exit 0;
                ;;
 esac
-
-# End
index b5ad8ffa1bbeb6db87eb3e9867e7a2463d51b8f8..b891855b2e9a7846770f3ca8028e7bcc49f33752 100644 (file)
@@ -1,20 +1,25 @@
 #!/bin/bash
-########################################################################
-# Begin
-#
-# Description : wpa_supplicant Script
-#
-# Authors     : IPFire Development Team <developers@ipfire.org>
-#
-# Version     : 01.00
-#
-# Notes       : This script starts/stops the dhclient if a WPA/WPA2
-#               connection to an AP successfull has been established
-#               or disconnected.
-#
-########################################################################
-. /etc/sysconfig/rc 
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+. /etc/sysconfig/rc
 . ${rc_functions}
 . /etc/init.d/networking/functions.network
 
index 5da0b2c8f6909f32b856c9e758d2b5caeca6d9e3..348e3384621759f0f0c988885eccafa25234044a 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/alsa
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-# ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org
-# Stores mixer settings in the default location: /etc/asound.state
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -28,5 +41,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/alsa
index eeaa7b7e5c966bfb0001df17d330295059faa2bb..40fe09cc09c662b2a357da3f777eb8691e614bca 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/amazon-ssm-agent
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -44,5 +60,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/amazon-ssm-agent
index 329dd80ac4a789f9a577e410758b14d9743999b4..11c600812777aa55c4737b285f994a16506c5a28 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/apcupsd
-
-# Based on sysklogd script from LFS-3.1 and earlier.
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -23,5 +39,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/apcupsd
\ No newline at end of file
index 7413f56f1f9f964d56ab148b2705cc76ad018c53..9f1791121a4f435b4f15d64681c94202a9153eff 100755 (executable)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/avahi
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -41,5 +53,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/avahi
index 2b925ad4f30cfb6a83548361fb817c61102424af..39f23711119d377aae5cdd9ec342d965fb25b63e 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/bacula
-
-# Based on sysklogd script from LFS-3.1 and earlier.
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -24,5 +40,3 @@ case "$1" in
                 ;;
 esac
 
-# End $rc_base/init.d/bacula
-
index 041db5edcb8735dd780b5800d2603c5c210964fc..321ecd0dbebd8d2ff89be5dbcf04dcf6f292fe69 100755 (executable)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/bird
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -37,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/bird
index 439c20579f5ea7c0691ba814e1fa4e371802ec6e..23fd89c0e5c914f4bcc59c20ab786a880321b7b6 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/clamav
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -71,5 +89,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/clamav
index ae8fef477429dd57d71e2b1470482eca664cf519..beee532b5009981faf03f7e75339e7096c731a31 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/cpufreq
-#
-# Description : Initalisize and startup cpufreq and set a governor
-#
-# Authors     : Arne Fitzenreiter - arne_f@ipfire.org
-#
-# Version     : 01.01
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -67,7 +74,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/cpufreq
-
-
index 1e6f8ea644bc596a4ac3af85131ee790b291a04a..193e7e9851e0f23f2069ab05d37d15070a405ceb 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/cups
-
-#$LastChangedBy: bdubbs $
-#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
-
-# Start or stop the CUPS server based upon the first argument to the script.
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -40,5 +53,3 @@ case $1 in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/cups
index 31d31471d3ea9044a1519dd44680f44bf66cae14..e3b102b70a29fd646b597a1973dd2bfeda6f035b 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/cyrus-sasl
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -36,5 +48,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/cyrus-sasl
index 35cc3c653c0b220918158316c8e9a7df2d15e76d..52de82d0b88c4ed3d807b76ac51962fc91712ce2 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/dnsdist
-#
-# Description : dnsdist - A DNS load-balancer and more
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -70,5 +83,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/dnsdist
index be0d1263abd534a2590398545b3c1158d9158e46..ede04c05ead2478d7936e16a7deb1aa0529678c9 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/fetchmail
-#
-# Description : Fetchmail Init Script
-#
-# Authors     : Michael Tremer (ms@ipfire.org)
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -47,5 +54,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/fetchmail
index 7aff4634d82e74562ee7e0b72453d0f923176c2e..af11b2c4da69f6888584b556c51cfe6dbd573894 100644 (file)
@@ -1,9 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/freeradius
-#
-# Description : Initscript for the FreeRADIUS Server
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -42,5 +56,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/freeradius
index 5fa4e9fa8f5e6f16efb1b80a4e0a50a2de995e2a..867c4b98d2211a6b42df6ef42efc861aa95fd7c3 100755 (executable)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/frr
-#
-# Description : FRRouting Suite
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -59,5 +72,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/frr
index f1dac3aa26e1537b9bb98f7b815ca2f5c15dcef2..26bcde4e578b060d478bb85d10c514b53d099705 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/gnump3d
-#
-# Description : GNUMP3d Init Script
-#
-# Authors     : Michael Tremer (ms@ipfire.org)
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -42,5 +49,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/gnump3d
index 0ff59b71511d19701319fd29e6b3c7db101a9296..a5ab16c6a4398ff3aed5b8ce8f2169fa8edeb5d5 100755 (executable)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/guardian
-#
-# Description : Guardian Initscript
-#
-# Authors     : Kim Wölfel for ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -52,5 +59,3 @@ case "$1" in
                exit 1
        ;;
 esac
-
-# End $rc_base/init.d/guardian
index 78d64cee4e2309facc174b665a919041797d72ba..80427373c5822c492a6dc61465c2dc640ff38d90 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/haproxy
-#
-# Description : HAProxy init script
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -43,5 +56,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/haproxy
index c559b26f0d9990cfce181f4d0cb468644e5d4d05..cd2aef9b1b27ad2d555a4d21e0c574b37df751ea 100644 (file)
@@ -1,4 +1,24 @@
 #!/bin/sh
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
 . /etc/sysconfig/rc
 . ${rc_functions}
 
index 4dda336d558a97b3a16cdcc945da642d95cac5c3..8186b4ff248e3e95dacb23131a6e022d241f6da1 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/keepalived
-#
-# Description : keepalive daemon initscript
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -48,5 +61,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/keepalived
index 88e61424a41ad80c200a0df58117daa32c3860cd..179214bac5bde925cffcd7759ce34601f4f27414 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/lcdproc
-#
-# Description :
-#
-# Authors     :
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -67,5 +74,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/lcdproc
diff --git a/src/initscripts/packages/lcr b/src/initscripts/packages/lcr
deleted file mode 100644 (file)
index dd72967..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/lcr
-#
-# Description : Linux Call Router Script
-#
-# Authors     : Arne Fitzenreiter (arne_f@ipfire.org)
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
-
-. /etc/sysconfig/rc
-. ${rc_functions}
-
-case "${1}" in
-       start)
-               boot_mesg "Starting Linux Call Router..."
-               nice --10 /usr/sbin/lcr fork >> /var/log/lcr/console.log 2>&1
-               evaluate_retval
-               ;;
-
-       stop)
-               boot_mesg "Stopping Linux Call Router..."
-               killproc /usr/sbin/lcr
-               ;;
-
-       restart)
-               ${0} stop
-               sleep 1
-               ${0} start
-               ;;
-
-       status)
-               statusproc /usr/sbin/lcr
-               ;;
-       *)
-               echo "Usage: ${0} {start|stop|restart|status}"
-               exit 1
-               ;;
-esac
-
-# End $rc_base/init.d/lcr
index f0a0b1e8ab2cf0f6d81f1869aa09671caaa2260e..b3b7bc65bc41ad77cf5afd08ee5591c57f883ead 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/libvirtd
-#
-# Description : libvirtd init script
-#
-# Authors     : Jonatan Schlag - jonatan.schlag@ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -50,5 +57,3 @@ case $1 in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/libvirtd
index 49717a1a198cbb6293043e92ec65dccef240b3c5..2f4a30b63a5281b296d7ef5591b1b9fc31da1b87 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/mdns-repeater
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -44,5 +60,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/mdns-repeater
index 3ea80bc927fcd71c40c464ec6fcfab24c77cab1e..399b4c041f206855654a993f052df8e7a2b876c6 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/messagebus
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: dnicholson $
-#$Date: 2007-10-21 11:33:30 -0500 (Sun, 21 Oct 2007) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -46,5 +58,3 @@ case "$1" in
                 exit 1
                 ;;
 esac
-
-# End $rc_base/init.d/messagebus
index 74ad8f880f3d714fcd9b1c49273f5966574dbc03..50a1607e74774d6ec94f77b92162185ba82b7bea 100644 (file)
@@ -1,14 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/minidlna
-#
-# Description : minidlna - UPNP/DLNA streaming server
-#
-# Authors     : Michael Tremer <michael.tremer@ipfire.org>
-#
-# Version     : 01.00
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -44,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/minidlna
index 02f47e481cfe695935a50b09a018f73b6a2647b4..cb485af4e43fb882cc5a9fd8482fe8a213677ec5 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/monit
-#
-# Description : monit monitoring daemon
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -35,5 +48,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/monit
index 4733326e9ae322b1d85de7161bf9655e254220e3..977001140e8947a93d580d984cbfaf9143dfc313 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/mpd
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-# ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org
-# Stores mixer settings in the default location: /etc/asound.state
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -34,5 +47,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/alsa
index c0e0771df27cea267071468727b202ceec8975d4..e680a57942891c60867f14fc139cd260b6baf8bc 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/netatalk
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -37,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/netatalk
index cadb54824a5e825218d83be4cb02ed34651ea5f0..46b16a4ab6f236f78c9d382f5d1db80ecc882b6c 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/net-snmp
-#
-# Description : This is a script that starts net-snmp as deamon
-#
-# Authors     : Peter Pfeiffer (peterman@ipfire.org)
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -21,7 +28,7 @@ case "${1}" in
                loadproc /usr/sbin/snmpd -c /etc/snmpd.conf > /dev/null
                evaluate_retval
                ;;
-               
+
        stop)
                boot_mesg "Stopping net-snmp - SNMPD..."
                killproc /usr/sbin/snmpd
@@ -42,5 +49,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/net-snmp
index a81faf7bba39a2e4f5d16f7ee4347abfc5a91b85..2ad06cecb83d5a551965998f1c4d050145b6c0bd 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/nfs-server
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2006-09-10 19:41:47 -0500 (Sun, 10 Sep 2006) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -96,5 +108,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/nfs-server
index 8de798c0634b73e87862a55309e233742d3d915d..0a49244a31855a931c00ca583dbae54c1d4ae8b6 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/nrpe
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -34,5 +52,3 @@ case "$1" in
                exit 1
        ;;
 esac
-
-# End $rc_base/init.d/nrpe
index 9b4623eceb818dfee1277cc4dc759f80b7aad598..ef0b2030dd738cc051e3d44a56c6587131d11318 100644 (file)
@@ -1,4 +1,23 @@
 #! /bin/sh
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
 
index a3bd0736ecf66fdf0128e4c9140f8171fdc757e3..d27598be86be39831ddd303d8aa8c0a376422035 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/
-#
-# Description : init-script for open-vm-tools
-#
-# Authors     : Jan Paul Tuecking (earl@ipfire.org)
-#
-# Version     : 1.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -32,7 +39,7 @@ case "${1}" in
                fi
        fi
        ;;
-       
+
        stop)
        if ps ax | grep -v grep | grep /usr/bin/vmtoolsd > /dev/null
                then
@@ -60,5 +67,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/
index 45d4c336a25a4af3a3a3be8813040631c680a74a..47087557f30b21b753c056bd6343d2e32047804d 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/pmacct
-
-# Based on sysklogd script from LFS-3.1 and earlier.
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -29,5 +45,3 @@ case "$1" in
                 ;;
 esac
 
-# End $rc_base/init.d/pmacct
-
index f7fc2dd73a3b1d509a9e278452fafe4d87cd73ec..92042e2d27f7064f73edf7dc0bff05a14b2e1902 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/postfix
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -60,5 +72,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/postfix
index 68863f86f9120ee75c768869da4d9581502714bc..a517b05cbb3cafaa2f60d0411ac52f8a1d600725 100755 (executable)
@@ -1,6 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/qemu-guest-agent
-
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -33,6 +50,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-
-# End $rc_base/init.d/qemu-guest-agent
index 57571fd7ad495149a358cdc2570b217bf8e2286c..8691f51223bcfa4117b4cdb3342993968b173360 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/rpcbind
-#
-# Description : rpcbind init script
-#
-# Authors     : Jonatan Schlag jonatan.schlag@ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -42,5 +49,3 @@ case "$1" in
                ;;
 
 esac
-
-# End $rc_base/init.d/rpcbind
index fbab2dabe320be03247c9f0a08c2c2bbd67c922c..93f14cd292ee28acd51cd9de550b717536f21b8c 100644 (file)
@@ -1,8 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/samba
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -68,5 +83,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/samba
index a5d81a99dab6328ae9c6fb845ed88544a07e19cf..92b5a108d0925e7c26ecea5dceb0e41d1f5bc69c 100755 (executable)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/shairport-sync
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -37,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/shairport-sync
index 43e58f392b79a18bc9288d2775df28d7c3148dbd..e7d21f23434e04c45d8573f510c9118aa81289f3 100644 (file)
@@ -1,8 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/sslh
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -46,5 +61,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/sslh
index 9494b5d9bdda66bff059604f79029784cfbb8284..f961cf184d53e30400378ccaf0d6fbe24b0443bb 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/stunnel
-#
-# Description : Provides an SSL encryption wrapper.
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -35,5 +48,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/stunnel
index 3abf00c8bc8d88ba3c30f59af796d30790637987..f2cc2313a1abb55dd87f0f574f0dc7feabad4133 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/tftpd
-#
-# Description : This script controls the tftpd server
-#
-# Authors     : Michael Tremer <ms@ipfire.org>
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -41,5 +48,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/tftpd
index 754a2786f3f7f8145e0f95e170ad7671a2082b3f..47797265cff631498f6d976ae1b177f61f7f1ecc 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/tor
-#
-# Description : Anonymizing overlay network for TCP
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -99,5 +112,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/tor
index 6fd7cd5334e5e0b3f18c415810e2f4d7f55a2e7c..589fbdc4eacf7b62e97cd4e9f0dea0523b368435 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/
-#
-# Description :
-#
-# Authors     :
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -45,5 +52,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/
index 759ad344d8b54c98edf210106a07eca7af5962fb..f0c158d8d7af991a9c6da33111ef6f42517ed5a1 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/vdr
-#
-# Description : This is a script that starts vdr as deamon
-#
-# Authors     : Arne Fitzenreiter (arne@ipfire.org)
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -21,7 +28,7 @@ case "${1}" in
                /usr/sbin/runvdr >/dev/null 2>&1 &
                evaluate_retval
                ;;
-               
+
        stop)
                boot_mesg "Stopping Video Disk Recorder..."
                killproc /usr/sbin/vdr
@@ -43,5 +50,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/vdr
index a0858de35f8077275f141d02b2ab1991cb2a36bc..02add78bf65af81887a55a0dd8a2727a0c68a9d4 100644 (file)
@@ -1,17 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/vdradmin
-#
-# Description : This is a script that starts vdradmind as deamon
-#
-# Authors     : Arne Fitzenreiter (arne@ipfire.org)
-#
-# Version     : 01.00
-#
-# Notes       : Changes in 01.01
-#             : v.2.6.7 needs /var/run/vdradmin dir (earl@ipfire.org)
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -23,7 +29,7 @@ case "${1}" in
                loadproc /usr/bin/vdradmind > /dev/null
                evaluate_retval
                ;;
-               
+
        stop)
                boot_mesg "Stopping VDR Webadministration Tool..."
                killproc /usr/bin/vdradmind
@@ -44,5 +50,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/vdradmin
index 148268621af75c727bedefcb97ea43920141096b..090ce821dd53f002295f9d72070040f50b197c94 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/virtlogd
-#
-# Description : virtlogd init script
-#
-# Authors     : Jonatan Schlag - jonatan.schlag@ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -42,5 +49,3 @@ case $1 in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/virtlogd
index a21949ad7316658140d830e97ce3791d8c959761..6dbcd4c34bb7cb57c20cb47274dd58316f917653 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/watchdog
-#
-# Description : watchdog daemon initscript
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -43,5 +56,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/watchdog
index 36ef45a2bdb27ce83fbe96e6ab0c581a1ee2b8e7..e948fb2cabba7b62fedd2b02fe618e6108511d70 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/xinetd
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -41,5 +53,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/xinetd
index bffbc489388037d9e68ecab3cbc4fa94127c0d2d..055968ef0c4aeebf76b1df34c85a825c55864899 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/zabbix_agentd
-#
-# Description : This script starts the Zabbix Agent as a daemon (zabbix_agentd)
-#
-# Authors     : Alexander Koch (ipfire@starkstromkonsument.de)
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -46,5 +53,3 @@ case "${1}" in
                 exit 1
                 ;;
 esac
-
-# End $rc_base/init.d/zabbix_agentd
index 83ea8e70398dc653b6acab3ec76d7a843e8bd796..5ae485a8934fa027b700a74bc9a2d4b4f02fe534 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index fba487405b9edadca7c5a25b4fcf313a2723d278..5fbf4a96c2454e135468a5aed051a991d2540a0b 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/acpid
-#
-# Description : ACPI daemon init script
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -36,5 +49,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/acpid
index d9cc7fa48d64a5ffd0fb7b880ab22b95a4f8fb5a..0f4fe4a712d7265f951249d9167587932050e8e9 100644 (file)
@@ -1,8 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/apache
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -80,7 +95,7 @@ case "$1" in
                /usr/sbin/apachectl -k restart
                evaluate_retval
                ;;
-               
+
        reload)
                boot_mesg "Reloading Apache daemon..."
                /usr/sbin/apachectl -k graceful
@@ -96,5 +111,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/apache
index 6498e293ad7f56017d41c221c6c3a19a2eb5382e..12c814543b775e3f6e77fc7c70522318d15c1c8c 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/beep
-#
-# Description : Plays a short melody when system goes up or down
-#
-# Authors     : Michael Tremer - mitch@ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -28,7 +35,7 @@ case "${1}" in
                for i in 440 466 494 523 554 587 622 659 698 740 764 831 880; do
                        play $i
                done
-               
+
                ;;
 
        stop)
@@ -36,13 +43,13 @@ case "${1}" in
                        play $i
                done
                ;;
-       
+
        up)
                for i in 440 622 880; do
                        play $i
                done
                ;;
-       
+
        down)
                for i in 880 622 440; do
                        play $i
@@ -54,5 +61,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/beep
index 1127099e062a2913912985c68c3aec626662e47b..99efcd594265f529d0763a06cf658262a1c6f765 100644 (file)
@@ -1,29 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/checkfs
-#
-# Description : File System Check
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#              A. Luebke - luebke@users.sourceforge.net
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-# Based on checkfs script from LFS-3.1 and earlier.
-#
-# From man fsck
-# 0    - No errors
-# 1    - File system errors corrected
-# 2    - System should be rebooted
-# 4    - File system errors left uncorrected
-# 8    - Operational error
-# 16   - Usage or syntax error
-# 32   - Fsck canceled by user request
-# 128  - Shared library error
-#
-#########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -125,5 +119,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/checkfs
index 28bafd2a10a17b42a57eb5138886e4feb2971094..d1cbb2547ec13449a504e952706c387cb86e0b80 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/cleanfs
-#
-# Description : Clean file system
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -149,5 +156,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/cleanfs
index 0da4e259ac749532a5726e33583e68fb77b5b3da..7721b5b8c7aae5326bf745fdf9bf1e05231d6de0 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/cloud-init
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -91,5 +107,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/cloud-init
index 20072780a723fcd344992ba885328bc8227c705a..6c58ac3a62f082c90e622c5d25d55f712b282a34 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/collecd
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -127,7 +145,7 @@ case "$1" in
                else
                        sed -i -e "s|^#LoadPlugin swap|LoadPlugin swap|g" /etc/collectd.conf
                fi
-               
+
                # sync after config update...
                sync
 
@@ -169,5 +187,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/collectd
index 75d51d26005e0ecd182f75d4d5b70130717f38a7..5ab1861089150e0d54484c6c73e4a75f70682d19 100644 (file)
@@ -1,7 +1,25 @@
 #!/bin/bash
-#
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
-. /etc/sysconfig/rc 
+. /etc/sysconfig/rc
 . ${rc_functions}
 
 # Stop if nothing is configured
@@ -39,7 +57,7 @@ case "$1" in
   start)
        boot_mesg "Starting connection daemon..."
        echo_ok
-               
+
                while [ "$COUNT" -lt "$MAX" ]; do
                        if [ ! -e "/var/ipfire/red/keepconnected" ]; then
                                # User pressed disconnect in gui
@@ -59,9 +77,9 @@ case "$1" in
                        sleep 5
                        (( COUNT+=1 ))
                done
-               
+
                /etc/rc.d/init.d/network stop red
-               
+
                (( ATTEMPTS+=1 ))
                msg_log "Reconnecting: Attempt ${ATTEMPTS} of ${MAXRETRIES}"
                if [ "${ATTEMPTS}" -ge "${MAXRETRIES}" ]; then
@@ -83,16 +101,16 @@ case "$1" in
                fi
                /etc/rc.d/init.d/network start red >/dev/tty12 2>&1 </dev/tty12 &
                ;;
-               
+
   reconnect)
                while ( ps ax | grep -q [p]ppd ); do
                        msg_log "There is a pppd still running. Waiting 2 seconds for exit."
                        sleep 2
                done
-               
+
                /etc/rc.d/init.d/network restart red
                ;;
-               
+
   *)
                echo "Usage: $0 {start|reconnect}"
                exit 1
index 2e7a2678b14e87508761a9883c735fd074b6b99c..c5387a6d0885e899ec5aaac7936fbf2edf3b92c5 100755 (executable)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/conntrackd
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -37,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/conntrackd
index 8757b4d26af1a74c293f1abb7cddac4f5a4f0cb8..0626b91ed0d7648b8a54e8f820f73a0744482611 100644 (file)
@@ -1,17 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/console
-#
-# Description : Sets keymap and screen font
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#              Alexander E. Patrakov
-#
-# Version     : 00.03
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -33,19 +39,19 @@ case "${1}" in
        start)
                boot_mesg "Setting up Linux console..."
                # There should be no bogus failures below this line!
-               
+
                # Figure out if a framebuffer console is used
                [ -d /sys/class/graphics/fb0 ] && USE_FB=1 || USE_FB=0
-               
+
                # Figure out the command to set the console into the
                # desired mode
                is_true "${UNICODE}" &&
                        MODE_COMMAND="echo -en '\033%G' && kbd_mode -u" ||
                        MODE_COMMAND="echo -en '\033%@\033(K' && kbd_mode -a"
-               
+
                # On framebuffer consoles, font has to be set for each vt in
                # UTF-8 mode. This doesn't hurt in non-UTF-8 mode also.
-               
+
                ! is_true "${USE_FB}" || [ -z "${FONT}" ] ||
                        MODE_COMMAND="${MODE_COMMAND} && setfont ${FONT}"
 
@@ -56,7 +62,7 @@ case "${1}" in
                # used.
                # FIXME: Fedora Core also initializes two spare consoles
                # - do we want that?
-               
+
                for TTY in `grep '^[^#].*respawn:/sbin/agetty' /etc/inittab |
                        grep -o '\btty[[:digit:]]*\b'`
                do
@@ -81,7 +87,7 @@ case "${1}" in
                [ -n "$BROKEN_COMPOSE" ] || BROKEN_COMPOSE="$UNICODE"
                ! is_true "$BROKEN_COMPOSE" ||
                        echo "" | loadkeys -c &>/dev/null
-               
+
                # Convert the keymap from $LEGACY_CHARSET to UTF-8
                [ -z "$LEGACY_CHARSET" ] ||
                        dumpkeys -c "$LEGACY_CHARSET" | loadkeys -u &>/dev/null
@@ -96,5 +102,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/console
index d98229564d8a8933acad1ec4a56921b30b6e68f0..61b951658809f6f870145bd0d1d45da64e7ba733 100644 (file)
@@ -1,9 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/dhcp
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-# Modified for IPFire by Michael Tremer - mitch@ipfire.org
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -87,5 +101,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/dhcp
index 327a08465346874dada44b004fc854a0f6d60995..c0e97d8cac0e2db945b2abb84523eadceec73c10 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/dhcrelay
-#
-# Description : The DHCP Relay Daemon
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -49,5 +62,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/dhcrelay
index 00a70bd4a370d7eb360b3d80f4289c7da7dee309..e93c6f040561713a018c95de879ede900e9b7c82 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/fcron
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -37,5 +49,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/fcron
index 47565b3e1ac32404c92a659271ec02233ac86258..d36ebe253e8a5b2788b47cb93c394379949f5feb 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/fireinfo
-#
-# Description : Fireinfo profile generator
-#
-# Authors     : IPFire Team
-#
-# Notes       : This script saves the fireinfo profile to a file which
-#               is needed to show that information on the webinterface.
-#               No data is sent to the server.
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -33,5 +40,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/fireinfo
index 14f93d9c776ecdb2a291f65418655ce7eb596353..22e3fae5943550abeb4692ca8d6e5f1c372cb748 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/sh
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 6930979e260322d987b2c86f56518678297d8448..944a4f51aec37918445625ae19c8851490ff5179 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 # Exit if firstsetup was already done...
 if [ -e /var/ipfire/main/firstsetup_ok ]; then
index 79aeb36fc7e089a2818afc4061b67210ec78ee9c..b1c82c827f9a7fc090288cf7e67125e6a266be2d 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/fsresize
-#
-# Description : Resize the root filesystem in the background
-#
-# Authors     : Arne Fitzenreiter - arne_f@ipfire.org
-#
-# Version     : 1.01
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -42,5 +49,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/26fsresize
index e44a2b4a1353ae716b9f209547a73a6c66d09b51..6f53a941badaac4c656e7240f9088023f9a261a9 100644 (file)
@@ -1,17 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/functions
-#
-# Description : Run Level Control Functions
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       : With code based on Matthias Benkmann's simpleinit-msb
-#              http://winterdrache.de/linux/newboot/index.html
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 ## Environmental setup
 # Setup default values for environment
@@ -869,5 +875,3 @@ running_on_oci() {
        # We are not running on OCI
        return 1
 }
-
-# End $rc_base/init.d/functions
index a3005c9903632f592e04fb22b2bc5bc2f5fc8767..91c89455ce1cabbc9a37934171e7de3932b41a3b 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/halt
-#
-# Description : Halt Script
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -38,5 +45,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/halt
index d68426acf2332bf8668d68fa8c14c5a9c9c37f3a..7522ce94df81747d43fdae36763420463a6956e0 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/leds
-#
-# Description : Script to setup leds at boot.
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -185,5 +198,3 @@ case "${1}" in
                exit 1
        ;;
 esac
-
-# End $rc_base/init.d/leds
index 0d01bd3003996ba0c6e62cafc4bdb10f855c8f5a..f260a1f29d71718d9b3172bc511dba1049b3b2c3 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/localnet
-#
-# Description : Loopback device
-#
-# Authors     : Gerard Beekmans  - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -71,5 +78,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/localnet
index fdae39fd9c74e3950495ee54a1f6762af951fab4..87cf87d336268e9ff30ac88ab1957bc83e5114b5 100755 (executable)
@@ -1,9 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/lvmeta2
-#
-# Description : LVM2 Metadata Daemon
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -37,5 +51,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/lvmetad
index a51694aa47a402712fb605f05174a4ab0932431d..e9b146afbd4e68445aeb337911a9738deb1c38b6 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/modules
-#
-# Description : Module auto-loading script
-#
-# Authors     : Zack Winkles
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -79,5 +86,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/modules
index 284b51dc8d4ef0054eb657bde7837fd2fbb3ded4..b1533d6a287bfa9814b42937032b86e24432d8cd 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/mountfs
-#
-# Description : File System Mount Script
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -53,5 +60,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/mountfs
index 905d2f87487b04d2b7f99f3a04a95f77bef0041e..d97b745be6e2f0821f175517eb12017bd9603a8b 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/mountkernfs
-#
-# Description : Mount proc and sysfs
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -60,5 +67,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/mountkernfs
index 9ec8c3ad687fa6d40a7131d2fc92bfab1e740341..2b86e5345e19b049b4daa448dc417b31910d3be7 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/mounttmpfs
-#
-# Description : Mount tmpfses
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -29,5 +42,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/mounttmpfs
index 32b34343e1236de544cc2c492fe5179be1577042..9ef3fb0d8fa1eefa3600e5f32be0342f43908650 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/network
-#
-# Description : Network Control Script
-#
-# Authors     : Michael Tremer - mitch@ipfire.org
-#
-# Version     : 01.00
-#
-# Notes       : Written for IPFire by its team
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -116,5 +123,3 @@ case "${DO}" in
                exit 1
                ;;
 esac
-
-# End /etc/rc.d/init.d/network
index d411ba18d6f66108df695e1a0c2f192db7255c09..74b8bc86ad2e0a2b43abd59a77b6df5f10e545c7 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/ntp
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -58,5 +76,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/ntp
index d59daabce7be1f95a79479e19916d6f3555ea890..4fe39940365286ed59379689f8d549032723c676 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/pakfire
-#
-# Description : Imports the keyring to make Pakfire operational
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -26,5 +39,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/pakfire
index 307cc5927f2630dbfcf078631726ac3c2935457d..7605b9e2b15a618f949741687e97d8fe0ff16e20 100644 (file)
@@ -1,18 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/partresize
-#
-# Description : Resize the root partition to the drivesize
-#              and setup some platform or hardware options in
-#              flashimage
-#
-# Authors     : Arne Fitzenreiter - arne_f@ipfire.org
-#
-# Version     : 1.04
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -131,5 +136,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/partresize
index 489c7dac90832c61bc94b65225cffd5d7795b055..60b508738267b1809a9fe5e68878f696d7e13a29 100644 (file)
@@ -1,4 +1,24 @@
 #!/bin/sh
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
 . /etc/sysconfig/rc
 . $rc_functions
 
@@ -29,5 +49,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/random
index 7990a88f3817106b3144f4564c7b43786f3f560b..b918624639b2339cf98cfff9e92b7e9b68ce4a67 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/rc
-#
-# Description : Main Run Level Control Script
-#
-# Authors     : Gerard Beekmans  - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -99,5 +106,3 @@ do
                print_error_msg
        fi
 done
-
-# End $rc_base/init.d/rc
index 0602ac4e3469d76bd98ccf5811297f209ef98ebb..30c5040258e95d02ae85041e55a501f292e3ff44 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/reboot
-#
-# Description : Reboot Scripts
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -32,5 +39,3 @@ case "${1}" in
                ;;
 
 esac
-
-# End $rc_base/init.d/reboot
index 0f95fde80ad34f918055d9303e3f94c423bd843b..ba3e72d3abde8816a26a9b1c7f72ee2fe5df772a 100644 (file)
@@ -1,12 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/rngd
-#
-# Description : Random Number Generator Daemon
-#
-# Authors     : Michael Tremer <michael.tremer@ipfire.org>
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -51,5 +62,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/rngd
index 58c16c3b42fedd64c0badade1c3003ffb2328c40..962a3a88ce09a8eb584300a207274b206ff159ac 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/sendsignals
-#
-# Description : Sendsignals Script
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -48,5 +55,3 @@ case "${1}" in
                ;;
 
 esac
-
-# End $rc_base/init.d/sendsignals
index cc977ddbc0c2021d7e2582c9fec06696eea2b5d8..b566eb7166ec78a44a28477257bb1c7e2180b284 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/setclock
-#
-# Description : Setting Linux Clock
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 4df693656fea4877c8459963300713bf6354b929..d8fdfde9504516928afdfb670597a3049daf4b6f 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/smartenabler
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -24,5 +42,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/smartenabler
index 274ec4bbaf413dd74e09e1ad1af6310cee1026ae..821bb51783c7e417987e77fc8d40a0aaea138bc6 100644 (file)
@@ -1,7 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/smt
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -45,5 +61,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/smt
index 09e7a044334c57c9abc8ca9579fdacb8c6c8e137..b7cb30b7c92e43277ea00b0ceb9e13cb262532da 100644 (file)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/squid
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -175,5 +193,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/squid
index d0d859118c37add5bfd0417f54a09bd4c507c7f8..fa40bc11d5b807b098dbfa10ad95c0dc786cc2ac 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/sshd
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: bdubbs $
-#$Date: 2006-04-15 17:34:16 -0500 (Sat, 15 Apr 2006) $
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -60,5 +72,3 @@ case "$1" in
         exit 1
         ;;
 esac
-
-# End $rc_base/init.d/sshd
index 84e3e3d2964e2b4a966fff7c92fbeec83d8bd820..85785e9af8ab1deb68382c04fb479f408caa49dc 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
index 13fcc7f346c7692927e5f15814674140f06da000..938ea66de6ccb55388bbf334455b10ddc58ac478 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/suricata
-#
-# Description : Suricata Initscript
-#
-# Author      : Stefan Schantl <stefan.schantl@ipfire.org>
-#
-# Version     : 01.03
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -193,11 +200,11 @@ case "$1" in
                # Don't report returncode of rm if suricata was not started
                exit 0
         ;;
-                
+
         status)
                 statusproc /usr/bin/suricata
                 ;;
-                
+
         restart)
                 $0 stop
                 $0 start
@@ -213,7 +220,7 @@ case "$1" in
                # Generate firewall rules.
                generate_fw_rules
                ;;
-                
+
         *)
                 echo "Usage: $0 {start|stop|restart|reload|status}"
                 exit 1
@@ -221,5 +228,3 @@ case "$1" in
 esac
 
 chmod 644 /var/log/suricata/* 2>/dev/null
-
-# End $rc_base/init.d/suricata
index edc63f3b092bc6bc2a2e02c71411fe6a81b5ffaa..c50d818c2b089c668320c10b5e907bc1711b04c7 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/swap
-#
-# Description : Swap Control Script
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -46,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/swap
index 30a5bd57eca71f67e2f1cdea92653a73fe55f037..73c606ad132b9c8705f66e3d23eba0dfcda48514 100644 (file)
@@ -1,11 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/swconfig
-#
-# Description : Script to setup lan switch.
-#               don't edit this script! If you want change the functions
-#               create an own script called swconfig.user
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -62,6 +74,3 @@ case "${1}" in
                exit 1
        ;;
 esac
-
-# End $rc_base/init.d/swconfig
-
index 311649e8889d5ec36ab640744280bc3600a11a97..8897c1faa1399618bcbc0ebabb9d51d2166b5793 100644 (file)
@@ -1,18 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/sysctl
-#
-# Description : File uses /etc/sysctl.conf to set kernel runtime
-#               parameters
-#
-# Authors     : Nathan Coulson (nathan@linuxfromscratch.org)
-#               Matthew Burgress (matthew@linuxfromscratch.org)
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -38,7 +43,7 @@ case "${1}" in
                ;;
 
        status)
-               sysctl -a       
+               sysctl -a
                ;;
 
        *)
@@ -46,5 +51,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/sysctl
index 90fe851dec5296a0fe692925f241e25a11fc0b04..5618ae3c8306965660a5ce6061eb3f4291948d9e 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/sysklogd
-#
-# Description : Sysklogd loader
-#
-# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -59,5 +66,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/sysklogd
index 69dc2a6a2202fb30da61a7fff6625aea531802e9..049ecc530f8fd9c2437466cd528ec9175c1353f0 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/
-#
-# Description :
-#
-# Authors     :
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -46,5 +53,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/
index e85775f8c192d2c2c1a86220969364bc756487ec..2f6146e5df811559230f1f2501552d08fac8a6af 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/udev
-#
-# Description : Udev cold-plugging script
-#
-# Authors     : Zack Winkles, Alexander E. Patrakov
-#
-# Version     : 00.02
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -78,5 +85,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/udev
index 25e6967c813a32ed5fb44aba8d9f1add87f56e12..3b116a8d2ddf3e16e3afa062b6ca3fb2a6ec426c 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/udev_retry
-#
-# Description : Udev cold-plugging script (retry)
-#
-# Authors     : Alexander E. Patrakov
-#
-# Version     : 00.02
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -24,7 +31,7 @@ case "${1}" in
                for file in /dev/.udev/failed/*/uevent ; do
                        echo "add" >"${file}"
                done 2>/dev/null
-               
+
                # Now wait for udevd to process the uevents we triggered
                /bin/udevadm settle
                evaluate_retval
@@ -35,5 +42,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/udev_retry
index 1b42ac72085fd782b3220223e55c4d3fdfaf296d..1005c14d1b6ad23d6bf10efdb50bd7fa6ae43486 100644 (file)
@@ -1,8 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/unbound
-
-# Description : Unbound DNS resolver boot script for IPfire
-# Author      : Marcel Lorenz <marcel.lorenz@ipfire.org>
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -611,5 +626,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/unbound
index 0cef59a603235ceb62020085f4185ef249c0d36d..511cd79f5d0f5496d5055b0da569d585109d818f 100755 (executable)
@@ -1,5 +1,23 @@
 #!/bin/sh
-# Begin $rc_base/init.d/vnstat
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . $rc_functions
@@ -52,5 +70,3 @@ case "$1" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/vnstat
index d7df93b94f6890f8cebd54824bef9a14186070c8..d4507f1045efc27ea07792a72d7e555fdb94f37f 100644 (file)
@@ -1,16 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/waitdrives
-#
-# Description : Wait for drives before fscheck/mount
-#
-# Authors     : Arne Fitzenreiter - arne_f@ipfire.org
-#
-# Version     : 00.00
-#
-# Notes       :
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -47,5 +54,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/waitdrives
index 338a743ab72e4ad69efcb4780116d8d71e1807cc..a6b74cfdf3fd9cb1a54a45dba8f1c44715fc4c15 100644 (file)
@@ -1,10 +1,23 @@
 #!/bin/sh
-########################################################################
-# Begin $rc_base/init.d/wlan_client
-#
-# Description : Wireless client initscript
-#
-########################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 . /etc/sysconfig/rc
 . ${rc_functions}
@@ -298,7 +311,7 @@ function wpa_supplicant_stop() {
 
        boot_mesg "Stopping wireless client on ${RED_DEV}..."
        killproc wpa_supplicant
-       
+
        # Tidy up /tmp directory.
        rm -f /tmp/wpa_ctrl_*
 }
@@ -331,5 +344,3 @@ case "${1}" in
                exit 1
                ;;
 esac
-
-# End $rc_base/init.d/wlan_client
index 6003bc0651a158be7580a631c86e03ba2e92bd18..fd4e37a8a92cbec6d99a25ac27195d51c3228c5b 100644 (file)
@@ -5,7 +5,7 @@
  *
  * (c) Lawrence Manning, 2001
  * Contains prototypes for library functions.
- * 
+ *
  */
 
 #ifndef ___LIBSMOOTH_H
@@ -53,7 +53,7 @@ int runcommandwithprogress(int width, int height, const char *title, const char
 int runcommandwithstatus(const char *command, const char* title, const char *message, const char* output);
 int runhiddencommandwithstatus(const char *command, const char* title, const char *message, const char* output);
 int splashWindow(const char* title, const char* message, unsigned int timeout);
-int checkformodule(const char *module); 
+int checkformodule(const char *module);
 int replace(char filename1[], char *from, char *to);
 char* get_version(void);
 
index fedff109d5d85801a59836a7ad2d4c83b911ae38..6695a48b28eb179a13d2ac3077b56039716bf20b 100644 (file)
@@ -6,7 +6,7 @@
  * (c) Lawrence Manning, 2001
  * Contains library functions.
  */
+
 #include "libsmooth.h"
 
 #include <libintl.h>
@@ -134,10 +134,10 @@ int runcommandwithprogress(int width, int height, const char *title, const char
        free(buf);
 
        newtFormAddComponent(f, t);
-       
+
        s = newtScale(1, 3, width - 2, lines);
        newtScaleSet(s, progress);
-       
+
        newtFormAddComponent(f, s);
 
        newtDrawForm(f);
@@ -149,18 +149,18 @@ int runcommandwithprogress(int width, int height, const char *title, const char
                goto EXIT;
        }
        setvbuf(p, NULL, _IOLBF, 255);
-       
+
        while (fgets(buffer, STRING_SIZE, p)) {
                newtScaleSet(s, ++progress);
-               newtRefresh();  
+               newtRefresh();
        }
 
        rc = pclose(p);
-       
+
 EXIT:
        newtFormDestroy(f);
        newtPopWindow();
-               
+
        return rc;
 }
 
@@ -174,7 +174,7 @@ int checkformodule(const char *module) {
                fprintf(stderr, "Unable to open /proc/modules in checkformodule()\n");
                return 0;
        }
-       
+
        while (fgets(buffer, STRING_SIZE, file))
        {
                if (strncmp(buffer, module, strlen(module)) == 0)
@@ -186,13 +186,13 @@ int checkformodule(const char *module) {
                        }
                }
        }
-       
+
 EXIT:
        fclose(file);
-       
+
        return result;
-}      
-               
+}
+
 int _replace_string(char string[], char *from, char *to)
 {
        int fromlen = strlen(from);
@@ -244,12 +244,12 @@ int replace(char filename1[], char *from, char *to) {
                if (strlen(to) > 0) {
                        /* Replace string */
                        ret = _replace_string (temp, from, to);
-               
+
                        /* Write string to new file */
                        fputs(temp, file2);
                } else {
                        /* Remove string when to is NULL */
-                       if (!strstr(temp, from)) 
+                       if (!strstr(temp, from))
                                fputs(temp, file2);
                }
        }
@@ -260,7 +260,7 @@ int replace(char filename1[], char *from, char *to) {
 
        /* Move the file */
        rename (filename2, filename1);
-       
+
        return (ret);
 }
 
index 9a64365af7a823f36aa060c8e3f91cb8098fbcb5..a4decd4d5255909c5f3532eafa55b2438c857c48 100644 (file)
@@ -5,13 +5,13 @@
  *
  * (c) Lawrence Manning, 2001
  * Contains functions for manipulation files full of VAR=VAL pairs.
- * 
+ *
  * 2003-07-27 Robert Kerr - Added cooperative file locking to prevent any
  * clashes between setuid programs reading configuration and cgi scripts
  * trying to write it
- * 
+ *
  */
+
 #include "libsmooth.h"
 
 /* Sets up the list.  First entry is a dummy one to avoid having to special
 struct keyvalue *initkeyvalues(void)
 {
        struct keyvalue *head = malloc(sizeof(struct keyvalue));
-       
+
        strcpy(head->key, "KEY");
        strcpy(head->value, "VALUE");
        head->next = NULL;
-       
+
        return head;
 }
 
@@ -32,7 +32,7 @@ void freekeyvalues(struct keyvalue *head)
 {
        struct keyvalue *cur = head->next;
        struct keyvalue *next;
-       
+
        while (cur)
        {
                next = cur->next;
@@ -49,16 +49,16 @@ int readkeyvalues(struct keyvalue *head, char *filename)
        char buffer[STRING_SIZE];
        char *temp;
        char *key, *value;
-       
+
        if (!(file = fopen(filename, "r")))
                return 0;
-               
+
        if (flock(fileno(file), LOCK_SH))
        {
                fclose(file);
                return 0;
        }
-       
+
        while (fgets(buffer, STRING_SIZE, file))
        {
                temp = buffer;
@@ -94,7 +94,7 @@ int readkeyvalues(struct keyvalue *head, char *filename)
                if (strlen(key))
                        appendkeyvalue(head, key, value);
        }
-       
+
        flock(fileno(file), LOCK_UN);
        fclose(file);
 
@@ -106,17 +106,17 @@ int writekeyvalues(struct keyvalue *head, char *filename)
 {
        FILE *file;
        struct keyvalue *cur = head->next;
-       
+
        if (!(file = fopen(filename, "w")))
                return 0;
-               
+
        if (flock(fileno(file), LOCK_EX))
        {
                fclose(file);
                return 0;
        }
-       
-               
+
+
        while (cur)
        {
                /* No space in value?  If there is, we need to quote the value
@@ -129,7 +129,7 @@ int writekeyvalues(struct keyvalue *head, char *filename)
        }
        flock(fileno(file), LOCK_UN);
        fclose(file);
-       
+
        return 1;
 }
 
index 9645cee18981d4d8632e59eeaca89ef377df79ef..14b4b13254e137f735a8b3d9e9009373ee8df78b 100644 (file)
@@ -27,7 +27,7 @@ int main(int argc, char *argv[]) {
        }
 
        const char* name = argv[1];
-       
+
        if (strlen(name) > 32) {
            fprintf(stderr, "\nString to large.\n\naddonctrl addon (start|stop|restart|reload|enable|disable)\n\n");
            exit(1);
index a026ba09d709b23f38aaa5e3d11cf2efd3f6ce9c..bc93e7b81699efc312cfe5bc9dd27116ce9fd838 100644 (file)
@@ -6,9 +6,9 @@
  * (c) IPFire Team, 2011
  *
  * Simple program that calls "sendprofile" as the root user.
- * 
+ *
  */
-         
+
 #include <stdlib.h>
 #include "setuid.h"
 
@@ -16,8 +16,8 @@ int main(void)
 {
        if (!(initsetuid()))
                exit(1);
-                       
+
        safe_system("/usr/bin/sendprofile");
-       
+
        return 0;
 }
index 99d053bbf8d1c9dfe17514ef6a010be8af508107..37e01c81a5a3e0578ba8320b77aec8afac0646ff 100644 (file)
@@ -1,12 +1,12 @@
 /* IPFire helper program - IPStat
  *
  * Get the list from IPTABLES -L
- * 
+ *
  * Optional commandline parameters:
- *  -x 
+ *  -x
  *   instruct iptables to expand numbers
- *  -f 
- *   display filter table 
+ *  -f
+ *   display filter table
  *  -n
  *   display nat table
  *  -m
@@ -33,7 +33,7 @@ int main(int argc, char** argv)
        unsigned int table_set = 0;
 
        int opt;
-       
+
        if (!(initsetuid()))
                exit(1);
 
index 115ec2a06373359262a6b992b7a77f22d3370798..10210d3e5fe3dd0c26a822ea2dedad05b2a21e41 100644 (file)
@@ -6,9 +6,9 @@
  * (c) Lawrence Manning, 2001
  * Installer helper for redirecting stdout/stderr to a file/terminal.
  * init calls ash through this program to shove it on a tty.
- * 
+ *
  * $Id: iowrap.c,v 1.2 2001/11/27 15:20:50 riddles Exp $
- * 
+ *
  */
 
 #include <stdio.h>
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
        if (argc >= 2)
        {
                int fd;
-               
+
                if ((fd = open(argv[1], O_RDWR)) == -1)
                {
                        printf("Couldn't open device\n");
@@ -34,8 +34,8 @@ int main(int argc, char *argv[])
                dup2(fd, 2);
                /* Now its sending/reading on that device. */
        }
-       
-       if (argc >= 3)  
+
+       if (argc >= 3)
                execvp(argv[2], &argv[2]);
        else
                printf("No command\n");
index 6f5ecf89a3d325ce4c02f2dd2bbe9c2056e1a51c..3048c3753b32c5f03318304b47e7478cee5819fe 100644 (file)
@@ -40,7 +40,7 @@ int main(int argc, char**argv)
 
        // Check what command is asked
        if (argc==1)
-       {           
+       {
            fprintf (stderr, "Missing reboot command!\n");
            return 1;
        }
index 001587fca0d72434b348e6e49dbd5016c01c3797..ed42f36dbd620bbcc78ebb2ec85e12c632fea64d 100644 (file)
 
 /*
     This module is responsible for start stop of the vpn system.
-    
+
     1) it allows AH & ESP to get in from interface where a vpn is mounted
         The NAT traversal is used on the udp 4500 port.
 
     2) it starts the ipsec daemon
         The RED interface is a problem because it can be up or down a startup.
-        Then, the state change and it must not affect other VPN mounted on 
+        Then, the state change and it must not affect other VPN mounted on
         other interface.
         Unfortunatly, openswan 1 cannot do that correctly. It cannot use an
         interface without restarting everything.
@@ -55,7 +55,7 @@ static void ipsec_reload() {
 /*
  return values from the vpn config file or false if not 'on'
 */
-int decode_line (char *s, 
+int decode_line (char *s,
                 char **key,
                 char **name,
                 char **type
@@ -85,7 +85,7 @@ int decode_line (char *s,
         // check other syntax
         if (! *name)
             return 0;
-                        
+
         if (strspn(*name, LETTERS_NUMBERS) != strlen(*name)) {
                 fprintf(stderr, "Bad connection name: %s\n", *name);
                 return 0;
@@ -112,7 +112,7 @@ void turn_connection_on(char *name, char *type) {
         char command[STRING_SIZE];
 
        // Bring down the connection (if established).
-        snprintf(command, STRING_SIZE - 1, 
+        snprintf(command, STRING_SIZE - 1,
                 "/usr/sbin/ipsec down %s >/dev/null", name);
         safe_system(command);
 
@@ -145,7 +145,7 @@ void turn_connection_off (char *name) {
        ipsec_reload();
 
        // Bring down the connection.
-        snprintf(command, STRING_SIZE - 1, 
+        snprintf(command, STRING_SIZE - 1,
                 "/usr/sbin/ipsec down %s >/dev/null", name);
         safe_system(command);
 
@@ -158,7 +158,7 @@ void turn_connection_off (char *name) {
 
 int main(int argc, char *argv[]) {
         struct keyvalue *kv = NULL;
-                        
+
         if (argc < 2) {
                 usage();
                 exit(1);
index 20967e471c4085bcb30cf375882c9ed71d8aff44..db23e9f00400588fd54471012e09eac9196c73ca 100644 (file)
@@ -254,7 +254,7 @@ void ovpnInit(void) {
                fprintf(stderr, "Cannot read ethernet settings\n");
                exit(1);
        }
-       
+
        if (strcmp(enableblue, "on") == 0) {
                if (!findkey(kv, "BLUE_DEV", blueif)) {
                        exit(1);
@@ -394,7 +394,7 @@ void setFirewallRules(void) {
                exit(1);
        }
 
-       /* we got one device, so lets proceed further   */      
+       /* we got one device, so lets proceed further   */
        if (!findkey(kv, "DDEST_PORT", dport)){
                fprintf(stderr, "Cannot read DDEST_PORT\n");
                exit(1);
@@ -474,7 +474,7 @@ void stopDaemon(void) {
 
 void startDaemon(void) {
        char command[STRING_SIZE];
-       
+
        if (!((strcmp(enablered, "on") == 0) || (strcmp(enableblue, "on") == 0) || (strcmp(enableorange, "on") == 0))) {
                fprintf(stderr, "OpenVPN is not enabled on any interface\n");
                exit(1);
@@ -712,7 +712,7 @@ int main(int argc, char *argv[]) {
                }
                else {
                        ovpnInit();
-                       
+
                        if( (strcmp(argv[1], "-s") == 0) || (strcmp(argv[1], "--start") == 0) ) {
                                setFirewallRules();
                                startDaemon();
index 549c6533f1e2d67170231a4c6494350fa2af09b8..7c9eedbd0c1fd200f93520ad02f67237d3a32765 100644 (file)
@@ -4,7 +4,7 @@
  * Licence.  See the file COPYING for details.
  *
  * (c) Alan Hourihane, 2003
- * 
+ *
  *
  * $Id: rebuildhosts.c,v 1.3.2.6 2005/07/11 10:56:47 franck78 Exp $
  *
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Couldn't read main settings\n");
                exit(1);
        }
-       strcpy(hostname, SNAME ); 
+       strcpy(hostname, SNAME );
        findkey(kv, "HOSTNAME", hostname);
        findkey(kv, "DOMAINNAME", domainname);
        freekeyvalues(kv);
index 9753492f6ee14ad539f6954cc8fbc244f7707f97..50153579930133338c6022213c1fe1707f0d270c 100644 (file)
@@ -8,7 +8,7 @@
 
 #define BUFFER_SIZE 1024
 
-char command[BUFFER_SIZE]; 
+char command[BUFFER_SIZE];
 
 int main(int argc, char *argv[]) {
        if (!(initsetuid()))
index 10ffd438d934cd99e1f0977cbc7ff4c806d4fb2f..4ba6816aff5ca2855e1967adf033f6b60dab36f4 100644 (file)
@@ -87,9 +87,9 @@ int main(void)
                fprintf(stderr, "Cannot read RED_TYPE\n");
                exit(1);
        }
-       
+
        /* Make sure it's the right type */
-       if (!(strcmp(s, "STATIC")==0)) 
+       if (!(strcmp(s, "STATIC")==0))
                exit(0);
 
        /* Get the RED interface details */
@@ -99,7 +99,7 @@ int main(void)
                fprintf(stderr, "Cannot read RED settings\n");
                exit(1);
        }
-               
+
        if (!VALID_DEVICE(red_dev))
        {
                fprintf(stderr, "Bad red_dev: %s\n", red_dev);
index 2936c439978cc084b9d5351dbbb357d0e7845093..8c40fd6fd58edd921f6007b017c2fed731cd65af 100644 (file)
@@ -3,7 +3,7 @@
  * This program is distributed under the terms of the GNU General Public
  * Licence.  See the file COPYING for details.
  * Simple header file for all setuid progs.
- * 
+ *
  */
 
 #ifndef SETUID_H
index 0d458a865e9723f27cf45cfb56d6ce4e4dd219f6..f1d0338c23e728e85f6f1587dd013434a10954dc 100644 (file)
@@ -5,10 +5,10 @@
  *
  * (c) Mark Wormgoor, 2001
  * Simple program intended to be installed setuid(0) that can be used for
- * restarting SSHd. 
- * 
+ * restarting SSHd.
+ *
  * $Id: sshctrl.c,v 1.3 2003/12/11 10:57:34 riddles Exp $
- * 
+ *
  */
 
 #include <stdio.h>
@@ -24,7 +24,7 @@
 
 #define BUFFER_SIZE 1024
 
-char command[BUFFER_SIZE]; 
+char command[BUFFER_SIZE];
 
 int main(int argc, char *argv[])
 {
index d73c4226518f3082086f993e0681db410d789597..3ae6bf8888b049f60bd654e649ae7da28cf92852 100644 (file)
@@ -7,7 +7,7 @@
  *
  * $Id$
  *
- * Edited by the IPFire Team to change var log messages 
+ * Edited by the IPFire Team to change var log messages
  */
 
 #include <stdio.h>
@@ -141,7 +141,7 @@ int main(void)
       exit(ERR_CONFIG);
    }
    close(config_fd);
-   
+
    if (rename("/etc/syslog.conf.new", "/etc/syslog.conf") == -1)
    {
       perror("Unable to replace old config file");
index cf58b5e344547e9d073a0e904c26aeda4a9ee036..c1a7adbdf830c0f83e1df08b55978f03b8653aa5 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char *argv[]){
 
        if (strcmp(argv[1], "cron") == 0){
                safe_system("rm /etc/fcron.*/updxlrator 2&>/dev/null");
-       
+
                if (strcmp(argv[2], "daily") == 0){
                        safe_system("ln -s /var/ipfire/updatexlrator/bin/checkup /etc/fcron.daily/updxlrator");
                } else if (strcmp(argv[2], "weekly") == 0){
index 6e2b306db5f0b30fbae7596de38860c02d70462e..28dc0307528ee15aa283015f8b309fb4c753ec03 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char *argv[]){
 
        if (strcmp(argv[1], "cron") == 0){
                safe_system("rm /etc/fcron.*/urlfilter 2&>/dev/null");
-       
+
                if (strcmp(argv[2], "daily") == 0){
                        safe_system("ln -s /var/ipfire/urlfilter/bin/autoupdate.pl /etc/fcron.daily/urlfilter");
                } else if (strcmp(argv[2], "weekly") == 0){
index a1e0168b3c85afc93c0ebca472871257fc1bcabc..92e644751a83ea94ade779021384a4e053396b06 100644 (file)
@@ -6,7 +6,7 @@
  * Licence.  See the file COPYING for details.
  *
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * 
+ *
  * IPFire.org - A linux based firewall
  * Copyright (C) 2017-2018 Stephan Feddersen <sfeddersen@ipfire.org>
  *
index 8d0923d650fc1b5c5d6bbdf50643357ed6c61fc6..d4e338f23ae8ae97d6f18c6d8890d13463dc5d30 100644 (file)
@@ -45,7 +45,7 @@ my @VALID_KEY_FINGERPRINTS = (
 
 # A small color-hash :D
 my %color;
-       $color{'normal'}      = "\033[0m"; 
+       $color{'normal'}      = "\033[0m";
        $color{'black'}       = "\033[0;30m";
        $color{'darkgrey'}    = "\033[1;30m";
        $color{'blue'}        = "\033[0;34m";
@@ -79,7 +79,7 @@ our $lockfile = "/tmp/pakfire_lock";
 
 sub message {
        my $message = shift;
-               
+
        logger("$message");
        if ( $enable_colors == 1 ) {
                if ("$message" =~ /ERROR/) {
@@ -99,7 +99,7 @@ sub message {
                }
        }
        print "$message\n";
-       
+
 }
 
 sub logger {
@@ -131,16 +131,16 @@ sub fetchfile {
        my $gethost = shift;
        my (@server, $host, $proto, $file, $i);
        my $allok = 0;
-       
+
        use File::Basename;
        $bfile = basename("$getfile");
-       
+
        logger("DOWNLOAD STARTED: $getfile");
 
-       $i = 0; 
+       $i = 0;
        while (($allok == 0) && $i < 5) {
                $i++;
-               
+
                if ("$gethost" eq "") {
                        @server = selectmirror();
                        $proto = $server[0];
@@ -150,9 +150,9 @@ sub fetchfile {
                        $host = $gethost;
                        $file = $getfile;
                }
-               
+
                $proto = "HTTPS" unless $proto;
-               
+
                logger("DOWNLOAD INFO: Host: $host ($proto) - File: $file");
 
                # Init LWP::UserAgent, request SSL hostname verification
@@ -165,7 +165,7 @@ sub fetchfile {
                );
                $ua->agent("Pakfire/$Conf::version");
                $ua->timeout(20);
-               
+
                my %proxysettings=();
                &General::readhash("${General::swroot}/proxy/advanced/settings", \%proxysettings);
 
@@ -196,19 +196,19 @@ sub fetchfile {
                my $remote_headers = $result->headers;
                $total_size = $remote_headers->content_length;
                logger("DOWNLOAD INFO: $file has size of $total_size bytes");
-               
+
                my $response = $ua->get($url, ':content_cb' => \&callback );
                message("");
-               
+
                my $code = $response->code();
                my $log = $response->status_line;
                logger("DOWNLOAD INFO: HTTP-Status-Code: $code - $log");
-               
+
                if ( $code eq "500" ) {
                        message("Giving up: There was no chance to get the file \"$getfile\" from any available server.\nThere was an error on the way. Please fix it.");
                        return 1;
                }
-               
+
                if ($response->is_success) {
                        if (open(FILE, ">$Conf::tmpdir/$bfile")) {
                                print FILE $final_data;
@@ -241,9 +241,9 @@ sub fetchfile {
 sub getmirrors {
        my $force = shift;
        my $age;
-       
+
        use File::Copy;
-       
+
        if ( -e "$Conf::dbdir/lists/server-list.db" ) {
                my @stat = stat("$Conf::dbdir/lists/server-list.db");
                my $time = time();
@@ -254,7 +254,7 @@ sub getmirrors {
                # Force an update.
                $force = "force";
        }
-       
+
        if ("$force" eq "force") {
                fetchfile("$Conf::version/lists/server-list.db", "$Conf::mainserver");
                move("$Conf::cachedir/server-list.db", "$Conf::dbdir/lists/server-list.db");
@@ -264,9 +264,9 @@ sub getmirrors {
 sub getcoredb {
        my $force = shift;
        my $age;
-       
+
        use File::Copy;
-       
+
        if ( -e "$Conf::dbdir/lists/core-list.db" ) {
                my @stat = stat("$Conf::dbdir/lists/core-list.db");
                my $time = time();
@@ -277,7 +277,7 @@ sub getcoredb {
                # Force an update.
                $force = "force";
        }
-       
+
        if ("$force" eq "force") {
                fetchfile("lists/core-list.db", "");
                move("$Conf::cachedir/core-list.db", "$Conf::dbdir/lists/core-list.db");
@@ -375,9 +375,9 @@ sub dbgetlist {
        #   Usage is always with an argument.
        my $force = shift;
        my $age;
-       
+
        use File::Copy;
-       
+
        if ( -e "$Conf::dbdir/lists/packages_list.db" ) {
                my @stat = stat("$Conf::dbdir/lists/packages_list.db");
                my $time = time();
@@ -388,7 +388,7 @@ sub dbgetlist {
                # Force an update.
                $force = "force";
        }
-       
+
        if ("$force" eq "force") {
                fetchfile("lists/packages_list.db", "");
                move("$Conf::cachedir/packages_list.db", "$Conf::dbdir/lists/packages_list.db");
@@ -428,7 +428,7 @@ sub dbgetlist {
 
 sub dblist {
        ### This subroutine lists the packages.
-       #   You may also pass a filter: &Pakfire::dblist(filter) 
+       #   You may also pass a filter: &Pakfire::dblist(filter)
        #   Usage is always with two arguments.
        #   filter may be: all, notinstalled, installed
        my $filter = shift;
@@ -439,8 +439,8 @@ sub dblist {
        my $prog;
        my %metadata;
        my @templine;
-       
-       ### Make sure that the list is not outdated. 
+
+       ### Make sure that the list is not outdated.
        #dbgetlist("noforce");
 
        open(FILE, "<$Conf::dbdir/lists/packages_list.db");
@@ -465,7 +465,7 @@ sub dblist {
                                }
                        }
                }
-       
+
                opendir(DIR,"$Conf::dbdir/installed");
                my @files = readdir(DIR);
                closedir(DIR);
@@ -518,7 +518,7 @@ sub dblist {
                        } else {
                                if ("$Pakfire::enable_colors" eq "1") {
                                        if (&isinstalled("$templine[0]")) {
-                                               $use_color = "$color{'red'}" 
+                                               $use_color = "$color{'red'}"
                                        } else {
                                                $use_color = "$color{'green'}"
                                        }
@@ -532,11 +532,11 @@ sub dblist {
 
 sub resolvedeps_one {
        my $pak = shift;
-       
+
        getmetafile("$pak");
-       
+
        message("PAKFIRE RESV: $pak: Resolving dependencies...");
-       
+
        my %metadata = parsemetafile("$Conf::dbdir/meta/meta-$pak");
        my @all;
        my @deps = split(/ /, $metadata{'Dependencies'});
@@ -549,7 +549,7 @@ sub resolvedeps_one {
                  } else {
                        message("PAKFIRE RESV: $pak: Need to install dependency: $_");
                                push(@all,$_);
-                       } 
+                       }
                }
        }
 
@@ -608,9 +608,9 @@ sub resolvedeps_recursive {
 sub cleanup {
        my $dir = shift;
        my $path;
-       
+
        logger("CLEANUP: $dir");
-       
+
        if ( "$dir" eq "meta" ) {
                $path = "$Conf::dbdir/meta";
        } elsif ( "$dir" eq "tmp" ) {
@@ -629,21 +629,21 @@ sub cleanup {
 
 sub getmetafile {
        my $pak = shift;
-       
+
        unless ( -e "$Conf::dbdir/meta/meta-$pak" ) {
                fetchfile("meta/meta-$pak", "");
                move("$Conf::cachedir/meta-$pak", "$Conf::dbdir/meta/meta-$pak");
        }
-       
+
        if ( -z "$Conf::dbdir/meta/meta-$pak" ) {
                fetchfile("meta/meta-$pak", "");
                move("$Conf::cachedir/meta-$pak", "$Conf::dbdir/meta/meta-$pak");
        }
-       
+
        open(FILE, "<$Conf::dbdir/meta/meta-$pak");
        my @line = <FILE>;
        close(FILE);
-       
+
        open(FILE, ">$Conf::dbdir/meta/meta-$pak");
        foreach (@line) {
                my $string = $_;
@@ -656,9 +656,9 @@ sub getmetafile {
 
 sub getsize {
        my $pak = shift;
-       
+
        getmetafile("$pak");
-       
+
        if (my %metadata = parsemetafile("$Conf::dbdir/meta/meta-$pak")) {
                return $metadata{'Size'};
        }
@@ -683,7 +683,7 @@ sub parsemetafile {
        open(FILE, "<$metafile");
        @file = <FILE>;
        close(FILE);
-       
+
        foreach (@file) {
                @templine = split(/\: /,$_);
                if ($templine[1]) {
@@ -697,11 +697,11 @@ sub parsemetafile {
 
 sub decryptpak {
        my $pak = shift;
-       
+
        cleanup("tmp");
-       
+
        my $file = getpak("$pak", "noforce");
-       
+
        logger("DECRYPT STARTED: $pak");
        my $return = system("cd $Conf::tmpdir/ && gpg -d --batch --quiet --no-verbose --status-fd 2 --output - < $Conf::cachedir/$file 2>/dev/null | tar x");
        $return %= 255;
@@ -714,31 +714,31 @@ sub getpak {
        my $force = shift;
 
        getmetafile("$pak");
-       
+
        my %metadata = parsemetafile("$Conf::dbdir/meta/meta-$pak");
        my $file = $metadata{'File'};
-       
+
        unless ($file) {
                message("No filename given in meta-file.");
                exit 1;
        }
-       
+
        unless ( "$force" eq "force" ) {
                if ( -e "$Conf::cachedir/$file" ) {
                        return $file;
                }
        }
-       
+
        fetchfile("paks/$file", "");
        return $file;
 }
 
 sub setuppak {
        my $pak = shift;
-       
+
        message("PAKFIRE INST: $pak: Decrypting...");
        decryptpak("$pak");
-       
+
        message("PAKFIRE INST: $pak: Copying files and running post-installation scripts...");
        my $return = system("cd $Conf::tmpdir && NAME=$pak ./install.sh >> $Conf::logdir/install-$pak.log 2>&1");
        $return %= 255;
@@ -766,7 +766,7 @@ sub upgradecore {
                $Conf::core_mine-- if ($tree eq "testing" || $tree eq "unstable");
 
                message("CORE UPGR: Upgrading from release $Conf::core_mine to $core_release");
-               
+
                my @seq = `seq $Conf::core_mine $core_release`;
                shift @seq;
                my $release;
@@ -774,14 +774,14 @@ sub upgradecore {
                        chomp($release);
                        getpak("core-upgrade-$release");
                }
-               
+
                foreach $release (@seq) {
                        chomp($release);
                        upgradepak("core-upgrade-$release");
                }
-               
+
                system("echo $core_release > $Conf::coredir/mine");
-               
+
        } else {
                message("CORE ERROR: No new upgrades available. You are on release $Conf::core_mine.");
        }
@@ -845,7 +845,7 @@ sub beautifysize {
        my $size = shift;
        #$size = $size / 1024;
        my $unit;
-       
+
        if ($size > 1023*1024) {
          $size = ($size / (1024*1024));
          $unit = "MB";
@@ -865,7 +865,7 @@ sub makeuuid {
                open(FILE, "</proc/sys/kernel/random/uuid");
                my @line = <FILE>;
                close(FILE);
-               
+
                open(FILE, ">$Conf::dbdir/uuid");
                foreach (@line) {
                        print FILE $_;
@@ -889,7 +889,7 @@ sub progress_bar {
                        $show_bfile = substr($bfile,0,17)."...";
                } else {
                        $show_bfile = $bfile;
-               }       
+               }
                $progress = sprintf("%.2f%%", 100*$got/+$total);
     sprintf "$color{'lightgreen'}%-20s %7s |%-${width}s| %10s$color{'normal'}\r",$show_bfile, $progress, $char x (($width-1)*$got/$total). '>', beautifysize($got);
 }
index 4139d106b8c0ef7ff4f4ad46839e0da64c9662cb..6c77695c815f0127f6b50541a588b6101d76a011 100644 (file)
        $ENV{"GNUPGHOME"} = "/opt/pakfire/etc/.gnupg";
 
        require "/opt/pakfire/lib/functions.pl";
-       
+
        my $interactive = 1;
        my $force = "noforce";
        my $locked;
-       
+
        &Pakfire::logger("PAKFIRE INFO: IPFire Pakfire $Conf::version started!");
 
        ### Check if we are running as root
@@ -43,7 +43,7 @@
          &Pakfire::message("PAKFIRE ERROR: You must run pakfire as user root!");
          exit 1;
        }
-       
+
        unless ( -e "/var/ipfire/red/active" ) {
                &Pakfire::message("PAKFIRE ERROR: You need to be online to run pakfire!");
                exit 2;
@@ -63,7 +63,7 @@
 
        # Close filehandle.
        close(LOCK);
-       
+
        ### Check if we are started by another name
        #
        if ( $0 =~ /pakfire-update$/ ) {
                $ARGV[0] = "upgrade";
                $interactive = 0;
        }
-       
+
        unless (@ARGV) {
                &Pakfire::usage;
        }
-       
+
        foreach (@ARGV) {
                if ("$_" =~ "^-") {
                        # Turn off interactive mode
                        $interactive = 0 if ("$_" eq "--non-interactive");
                        $interactive = 0 if ("$_" eq "-y");
-                       
+
                        # Turn off shell colors - Bad for displaying in webinterface
                        $Pakfire::enable_colors = 0 if ("$_" eq "--no-colors");
-                       
+
                        # Turn on force mode
                        $force = "force" if ("$_" eq "-f" );
                        $force = "force" if ("$_" eq "--force" );
 
        if ("$ARGV[0]" eq "install") {
                shift;
-               
-               ### Make sure that the list is not outdated. 
+
+               ### Make sure that the list is not outdated.
                &Pakfire::dbgetlist("noforce");
 
                open(FILE, "<$Conf::dbdir/lists/packages_list.db");
                my @db = <FILE>;
                close(FILE);
-               
+
                my $dep;
                my @deps;
                my $pak;
                                $return = &Pakfire::isinstalled($pak);
                                if ($return eq 0) {
                                        &Pakfire::message("PAKFIRE INFO: $pak is already installed");
-                                       next; 
+                                       next;
                                }
                                $found = 0;
                                foreach (@db) {
                                }
                        }
                }
-               
+
                unless (@paks) {
                        &Pakfire::message("PAKFIRE ERROR: No packages to install. Exiting...");
                        exit 1;
                        $size = &Pakfire::beautifysize($size);
                  &Pakfire::message("PAKFIRE INFO: $pak \t - $size");
                }
-               
+
                my $totalsize;
                foreach $pak (@all) {
                        $totalsize = ($totalsize + &Pakfire::getsize("$pak"));
                &Pakfire::message("");
                &Pakfire::message("PAKFIRE INFO: Total size: \t ~ $totalsize");
                &Pakfire::message("");
-               
+
                if ($interactive) {
                  &Pakfire::message("PAKFIRE INFO: Is this okay? [y/N]");
                        my $ret = <STDIN>;
                } else {
                        &Pakfire::logger("PAKFIRE INFO: Interaction skipped.");
                }
-               
+
 #              my %sort = map{ $_, 1 } @all;
 #              @all = sort keys %sort;
 
                foreach $pak (@deps) {
                        &Pakfire::setuppak("$pak") if ($pak ne "");
                }
-               
+
 
                foreach $pak (@paks) {
                        &Pakfire::setuppak("$pak") if ($pak ne "");
                }
-               
+
 
        } elsif ("$ARGV[0]" eq "remove") {
                shift;
-               
+
                my @paks;
                my $pak;
                foreach $pak (@ARGV) {
                                push(@paks, $pak);
                        }
                }
-               
+
                unless (@paks) {
                        &Pakfire::message("PAKFIRE ERROR: No packages to remove. Exiting...");
                        exit 1;
                }
-               
+
                &Pakfire::message("");
                &Pakfire::message("");
                &Pakfire::message("PAKFIRE INFO: Packages to remove:");
                        $size = &Pakfire::beautifysize($size);
                  &Pakfire::message("PAKFIRE INFO: $pak \t - $size");
                }
-               
+
                if ($interactive) {
                  &Pakfire::message("PAKFIRE INFO: Is this okay? [y/N]");
                        my $ret = <STDIN>;
                          exit 1;
                        }
                }
-               
+
                foreach $pak (@paks) {
                        &Pakfire::removepak("$pak");
                }
-       
-       
+
+
        } elsif ("$ARGV[0]" eq "update") {
                &Pakfire::makeuuid();
                &Pakfire::getmirrors("$force");
                                }
                        }
                }
-               
+
                # Download packages
                foreach $pak (@upgradepaks) {
                        &Pakfire::getpak("$pak", "");
                foreach $pak (@upgradepaks) {
                        &Pakfire::upgradepak("$pak");
                }
-               
+
        } elsif ("$ARGV[0]" eq "list") {
                if ("$ARGV[1]" =~ /installed|notinstalled/) {
                        &Pakfire::dblist("$ARGV[1]", "noweb");
                } else {
-                       &Pakfire::message("PAKFIRE WARN: Not a known option $ARGV[1]") if ($ARGV[1]); 
+                       &Pakfire::message("PAKFIRE WARN: Not a known option $ARGV[1]") if ($ARGV[1]);
                        &Pakfire::dblist("all", "noweb");
                }
-               
+
        } elsif ("$ARGV[0]" eq "resolvedeps") {
                foreach (@ARGV) {
                        next if ("$_" eq "resolvedeps");
index 0095670098d9cbbe31d49f9d0fb2919dc3b9e6f3..0645791d584090783a87658936449e0f65f4ab43 100755 (executable)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index cfe478daf49701888209d635680a005870ea6ec2..fe53767417f86c993fa30f9400f7f1a29129880e 100644 (file)
@@ -1,4 +1,23 @@
 #!/bin/sh
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 # FIXME: edit this lines before release
 IPFVER=2.27
index b576df4fe59295373625f87483e542b415107871..afa3efd258132f2a0dcf8ea9bd298930c4a329e9 100755 (executable)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2016  IPFire Team  <alexander.marx@ipfire.org>                #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index bc4d4eb6562302b5fc60c2600604bf3226213e5a..a6de9cf721b3ea58c15c52092ddc88d5e9f42759 100644 (file)
@@ -1,11 +1,23 @@
 #!/usr/bin/perl
-#
-# IPFire Connection Scheduler (F)Cron Job
-#
-# This code is distributed under the terms of the GPL
-# The original code is taken from weizen_42.
-# See /home/httpd/cgi-bin/connscheduler.cgi
-#
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 use strict;
 
@@ -79,11 +91,11 @@ sub hangup
     return;
   }
 
-  # now wait for active triggerfile and ppp daemon to disappear 
+  # now wait for active triggerfile and ppp daemon to disappear
   # wait maximum 60 seconds
   my $counter = 60;
   sleep 1;
-  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 ) 
+  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 )
   {
     sleep 1;
     $counter--;
@@ -123,7 +135,7 @@ sub reconnect
   # wait maximum 60 seconds
   my $counter = 60;
   sleep 1;
-  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 ) 
+  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 )
   {
     sleep 1;
     $counter--;
@@ -168,7 +180,7 @@ sub profile
     ## FIXME: do we need to do this ?
     sleep($sleep_after_profile);
     &dial();
-  }  
+  }
 }
 
 
@@ -200,7 +212,7 @@ sub timer
     }
 
 
-    if ( $CONNSCHED::config[$i]{'ACTION'} eq 'reconnect' )    
+    if ( $CONNSCHED::config[$i]{'ACTION'} eq 'reconnect' )
     {
       &reconnect()
     }
index ba6631f7429831ddf250495ac2a7007322bd2012..fa905e539d5c48bebfe47536bbbd612ea9e803d2 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2013  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -20,7 +20,7 @@
 ###############################################################################
 
 # sort conntrack table entries based on ip addresses
-# @parm sort field 
+# @parm sort field
 do_ip_sort() {
        sed \
                -r \
@@ -34,7 +34,7 @@ do_ip_sort() {
 }
 
 # sort conntrack table entries based on port addresses
-# @parm sort field 
+# @parm sort field
 do_port_sort() {
        sed \
                -r \
@@ -140,7 +140,7 @@ if [ $# == 3 ]; then
 fi
 
 if [[ '1 2' =~ $1 ]]; then
-       do_ip_sort $1 
+       do_ip_sort $1
 elif [[ '3 4' =~ $1 ]]; then
        do_port_sort $(($1-2))
 elif [[ '5' =~ $1 ]]; then
index 945a15ef0b572a43abbb10edb8504aa844099862..66c8f78eced0c0003157ccdb60080c15700604d8 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 ###############################################################################
 #                                                                             #
-# IPFire.org - A Linux-based firewall                                         #
-# Copyright (C) 2020 IPFire Team <info@ipfire.org>                            #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -68,7 +68,7 @@ main() {
 
        # Remove all old settings from files
        local file
-       for file in "${FILES[@]}"; do   
+       for file in "${FILES[@]}"; do
                # Remove DNS, DNS0, DNS1 and DNS2
                sed -Ei "/^DNS[012]?=/d" "${file}"
        done
@@ -95,7 +95,7 @@ main() {
                if [ "${FORCE_TCP}" = "on" ]; then
                        echo "PROTO=TCP" >> /var/ipfire/dns/settings
                fi
-       
+
                # Run in recursor mode
                if [ "${USE_FORWARDERS}" = "0" ]; then
                        # Remove all servers
index 58921a587c4bf5836cb4cf99f7bdb9290719ff17..30e75432676d1ce3d92e27b9505161657dba8865 100755 (executable)
@@ -3,7 +3,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2013 Alexander Marx <amarx@ipfire.org>                        #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index 428a91d34254bc78ba4bd4954a3786a7c9ab5fb8..dba9f55e4499500063e0c74d8ebf14d9876d67b2 100755 (executable)
@@ -1,9 +1,8 @@
 #!/bin/bash
-
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2020 IPFire Development Team <info@ipfire.org>                #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index e0eb0d36118c49c1901e88df6afe0fb9fcab975e..a1b5e88913b42e873054ff37f32488a900b3175e 100644 (file)
@@ -1,25 +1,23 @@
 #!/bin/bash
-############################################################################
-#                                                                          #
-# This file is part of the IPFire Firewall.                                #
-#                                                                          #
-# IPFire is free software; you can redistribute it and/or modify           #
-# it under the terms of the GNU General Public License as published by     #
-# the Free Software Foundation; either version 2 of the License, or        #
-# (at your option) any later version.                                      #
-#                                                                          #
-# IPFire is distributed in the hope that it will be useful,                #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
-# GNU General Public License for more details.                             #
-#                                                                          #
-# You should have received a copy of the GNU General Public License        #
-# along with IPFire; if not, write to the Free Software                    #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
-#                                                                          #
-# Copyright (C) 2020 IPFire Team <info@ipfire.org>.                        #
-#                                                                          #
-############################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 PATHS=(
        /usr/lib
index ce345e374b77e9edc21eca344a79dea4b0e3f1a6..e7ab55cae1530d9133dd57b00c43cc4356bf0a8a 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2011  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -45,7 +45,7 @@ foreach (@devices){
     if (-e "/var/run/hddshutdown-$array[$#array]" && $status !~/standby/)
     {
        if ($debug){print "Remove wrong standby marking\n";}
-       if ( -e "/var/run/hddshutdown-$array[$#array]" ) { system("unlink /var/run/hddshutdown-$array[$#array]"); } 
+       if ( -e "/var/run/hddshutdown-$array[$#array]" ) { system("unlink /var/run/hddshutdown-$array[$#array]"); }
     }
 
     if ($debug){print "Device ".$_." has ".$newdiskstats." write and read Requests, was ".$diskstats." at last run.\n";}
@@ -54,8 +54,8 @@ foreach (@devices){
        if ($debug){print "Setting Device ".$_." to standby ... ";}
        $status = `hdparm -y /dev/$_ 2>&1`;
        chomp $status;
-       if ($status !~/Invalid/) 
-       {  
+       if ($status !~/Invalid/)
+       {
            if ($debug){print "OK\n";}
            system("touch /var/run/hddshutdown-$array[$#array]");
        }
index f0983dbdc37b5bee5844b4510e7d1a74dc86cde5..23512b9bd93b005e98892f46fa60cd0107875981 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2015 IPFire Team                                              #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index cbfc83c77f68c235f57990a31abc8c813ee6c985..f69d41c182ddd6e18ffb67717f8b1c98464e1cdd 100644 (file)
@@ -1,9 +1,8 @@
 #!/usr/bin/perl
-
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2008-2013  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index ac0cab90956dad4c6cb53c27e91a807f363b5db0..0f77d2238ad520da994d0aa513c06a67c4bd34ad 100755 (executable)
@@ -1,25 +1,23 @@
 #!/usr/bin/python3
-############################################################################
-#                                                                          #
-# This file is part of the IPFire Firewall.                                #
-#                                                                          #
-# IPFire is free software; you can redistribute it and/or modify           #
-# it under the terms of the GNU General Public License as published by     #
-# the Free Software Foundation; either version 2 of the License, or        #
-# (at your option) any later version.                                      #
-#                                                                          #
-# IPFire is distributed in the hope that it will be useful,                #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
-# GNU General Public License for more details.                             #
-#                                                                          #
-# You should have received a copy of the GNU General Public License        #
-# along with IPFire; if not, write to the Free Software                    #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
-#                                                                          #
-# Copyright (C) 2007-2020 IPFire Team <info@ipfire.org>.                   #
-#                                                                          #
-############################################################################
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 import argparse
 import logging
index f4967065622303c463c0e5b68c3cb2aa7ac08768..05339af787826b78bf2eacb82500e1c028b5c423 100644 (file)
@@ -1,5 +1,24 @@
 #!/usr/bin/perl
-# Converter script for old openvpn clients
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
 my %net=();
 my %ovpnconfig=();
 my @serverconf=();
index 59d67b9b0aceb4177be81d8eb9e8070cd07b185c..559985777d358eeb47cc1fac6f8a934bed026775 100644 (file)
@@ -1,6 +1,23 @@
 #!/usr/bin/perl
-# Converter script for adding existing OpenVPN N2N connections to collectd
-# Used for core update 89
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 my %ovpnconfig=();
 
index 21498824f44f4ead465fddd9208c4413e722c5e0..64a341322e50e4f5611b1a138f4931f104b4711f 100644 (file)
@@ -1,48 +1,25 @@
 #!/usr/bin/perl -w
-use strict;
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
-##########################################
-##
-## DESCRIPTION
-##
-##   The tc-graph daemon script: "tc-collector"
-##   Which is part of the ADSL-optimizer.
-##
-##   The script will become a daemon and periodically collect data
-##   from the Linux traffic control system.  The collected data is
-##   stored in some RRD-data files, which is created automatically by
-##   the script if they don't exist.
-##
-## GRAPHs
-##
-##   How the RRD-data is displayed as graphs is not part of the
-##   tc-collector tool.  But we recommend using the RRD-frontend 'ddraw'.
-##   We have included some 'ddraw' examples (which is hardcoded to use
-##   files from '/var/spool/rrdqueues').
-##
-##      drraw:  http://web.taranis.org/drraw/
-##
-##
-## REQUIRES
-##
-##   RRDtools Perl interface RRDs
-##   The "tc" command.
-##
-##
-## AUTHOR
-##   Jesper Dangaard Brouer <hawk@diku.dk>, d.16/4-2004
-##
-## CHANGELOG
-##   2004-04-16:  Initial version.
-##   2004-05-27:  Daemon version.
-##
-## $Id: tc-collector.pl,v 1.12 2005/03/19 19:31:08 hawk Exp $
-##########################################
-
-# TODO:
-#  * Calc time used to parse, use to make time steps more precise
-#  * Device list support
-#  * Detecting the correct devices
+use strict;
 
 # Configuration options:
 #
index 3dd08dc215f1d68eafb9969018d1dd96105ddd3c..51265650ad0aaef37f9bf99c1360d54301f8e65a 100644 (file)
@@ -1,27 +1,24 @@
 #!/bin/bash
-############################################################################
-#                                                                          #
-# This file is part of the IPFire Firewall.                                #
-#                                                                          #
-# IPFire is free software; you can redistribute it and/or modify           #
-# it under the terms of the GNU General Public License as published by     #
-# the Free Software Foundation; either version 3 of the License, or        #
-# (at your option) any later version.                                      #
-#                                                                          #
-# IPFire is distributed in the hope that it will be useful,                #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
-# GNU General Public License for more details.                             #
-#                                                                          #
-# You should have received a copy of the GNU General Public License        #
-# along with IPFire; if not, write to the Free Software                    #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
-#                                                                          #
-# Copyright (C) 2018 IPFire-Team <info@ipfire.org>.                        #
-#                                                                          #
-############################################################################
-#
-#
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
 KVER=`uname -r`
 
 dracut --force --early-microcode --xz /boot/initramfs-$KVER.img $KVER
index b208bbb1d1ab5f145774fbd638faeebf7d92e607..3623829a53a9c8b15724bd3f77a60f323868d297 100644 (file)
@@ -1,4 +1,24 @@
 #!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
 case "$1" in
        ide)
                rm -f /var/ipfire/extrahd/scan
index 0bfcf3edf606b4f3397dd5dc434cc19daee90868..2d181659b1015b43bc1743b90438e60f1356b0f4 100644 (file)
@@ -1,15 +1,23 @@
 #!/bin/sh
-#
-# IPCop CGIs
-#
-# This file is part of the IPCop Project
-# 
-# This code is distributed under the terms of the GPL
-#
-# (c) Eric Oberlander June 2002
-# (c) Eric Oberlander December 2002 - internationalisation added
-#
-# /usr/local/bin/settime
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 ongreen=1
 green=$(cat /var/ipfire/ethernet/settings | grep GREEN_NETADDRESS)
@@ -62,7 +70,7 @@ if [ -n "$1" ]; then
                                *  ) logger -t ipfire "ntpdate error" ;;
                        esac
                fi
-       fi              
+       fi
 else
        echo Missing parameter
 fi
index 9f581985a0037d26039bba67d3133438e1114391..16123cf0ab37ae1a69c56109e4dbaa73dc2388ce 100644 (file)
@@ -1,14 +1,23 @@
 #!/bin/sh
-#
-# IPCop CGIs
-#
-# This file is part of the IPCop Project
-# 
-# This code is distributed under the terms of the GPL
-#
-# (c) Eric Oberlander June 2002
-#
-# /usr/local/bin/timecheck
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 if [ -e /var/ipfire/time/enable ]; then
        if [ $(cat /var/ipfire/time/settings | grep period) ] && [ -e /var/lock/time/counter ]; then
@@ -32,4 +41,4 @@ if [ -e /var/ipfire/time/enable ]; then
                        /usr/local/bin/settime $(cat /var/ipfire/time/settime.conf)
                fi
        fi
-fi             
+fi
index a8e436f1baf3f4a60123a3bbde7d4332433d6283..0be5e9bba3b64cc563988797f878b4b4dadc6e36 100644 (file)
@@ -1,26 +1,24 @@
 #!/bin/bash
-############################################################################
-#                                                                          #
-# This file is part of the IPFire Firewall.                                #
-#                                                                          #
-# IPFire is free software; you can redistribute it and/or modify           #
-# it under the terms of the GNU General Public License as published by     #
-# the Free Software Foundation; either version 2 of the License, or        #
-# (at your option) any later version.                                      #
-#                                                                          #
-# IPFire is distributed in the hope that it will be useful,                #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
-# GNU General Public License for more details.                             #
-#                                                                          #
-# You should have received a copy of the GNU General Public License        #
-# along with IPFire; if not, write to the Free Software                    #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
-#                                                                          #
-# Copyright (C) 2014 IPFire Team <info@ipfire.org>                         #
-#                                                                          #
-############################################################################
-
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+#
 # This script checks if a daylight saving time transition
 # has just happened and will run the given command.
 
index 10a2709074dfecc3575834d9a7970269b6501b65..b3974528dc32363ae3c39595ef8972ca41e906fc 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2018-2021 IPFire Team  <info@ipfire.org>                      #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index 971664ee23263f41ea594ee544e656d8ba73286e..d490f1d8d7cf744ccdeb5bb73309a631c8211da9 100644 (file)
@@ -1,3 +1,23 @@
 #!/bin/sh
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
 perl -e "require '//var/ipfire/lang.pl'; &Lang::BuildCacheLang"
 
index d41a0a947be0a028f39c51d0a126cf80746ba516..24970dc084e30ee032332430f1f39c84acb6b947 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2019 IPFire Development Team <info@ipfire.org>                #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
index 8eefc63e2a3d5d9dac93b904ef5a2528ff57c8c0..75a5605602f6ce3a500e1dcc5d0bceb66c48f401 100644 (file)
@@ -56,9 +56,9 @@ if ($baseurl =~ /\/\s*$/) {
 # Loop trough configured manual pages
 foreach my $page (keys %manualpages) {
        # Build absolute path and URL
-       my $cgifile = "${basedir}/html/cgi-bin/${page}.cgi";    
+       my $cgifile = "${basedir}/html/cgi-bin/${page}.cgi";
        my $url = "${baseurl}/$manualpages{$page}";
-       
+
        print "${page}.cgi -> '$url'\n";
 
        # Check CGI file exists
@@ -76,7 +76,7 @@ foreach my $page (keys %manualpages) {
        if($status != 200) {
                die("ERROR: Received unexpected HTTP '$status'!\n");
        }
-       
+
        print "SUCCESS: Received HTTP '$status'.\n";
 }
 
index 494f1f626352e45290f5c025463c41cb3bb1fe0d..ed3c45b0d5b2ea4eb5c9d8dbec3aa2a249e7d212 100755 (executable)
@@ -33,7 +33,7 @@ require "${basedir}/langs/$lang/cgi-bin/$lang.pl";
 open(FILE,">${basedir}/langs/$lang/cgi-bin/$lang.pl");
 
 print FILE <<EOF;
-\%tr = ( 
+\%tr = (
 \%tr,
 
 EOF