mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
General-Fuctions gefixt, da der DHCP-Client die Strings mit einigen Leerstellen davor speichert.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@481 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -37,7 +37,7 @@ sub log
|
|||||||
my $logmessage = $_[0];
|
my $logmessage = $_[0];
|
||||||
$logmessage =~ /([\w\W]*)/;
|
$logmessage =~ /([\w\W]*)/;
|
||||||
$logmessage = $1;
|
$logmessage = $1;
|
||||||
system('/usr/bin/logger', '-t', $tag, $logmessage);
|
system('logger', '-t', $tag, $logmessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub readhash
|
sub readhash
|
||||||
@@ -63,8 +63,13 @@ sub readhash
|
|||||||
$val =~ s/\'$//g;
|
$val =~ s/\'$//g;
|
||||||
|
|
||||||
# Untaint variables read from hash
|
# Untaint variables read from hash
|
||||||
$var =~ /([A-Za-z0-9_-]*)/; $var = $1;
|
# trim space from begin and end
|
||||||
$val =~ /([\w\W]*)/; $val = $1;
|
$var =~ s/^\s+//;
|
||||||
|
$var =~ s/\s+$//;
|
||||||
|
$var =~ /([A-Za-z0-9_-]*)/;
|
||||||
|
$var = $1;
|
||||||
|
$val =~ /([\w\W]*)/;
|
||||||
|
$val = $1;
|
||||||
$hash->{$var} = $val;
|
$hash->{$var} = $val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ usr/local/bin/settime
|
|||||||
usr/local/bin/timecheck
|
usr/local/bin/timecheck
|
||||||
usr/local/bin/tunerrd.pl
|
usr/local/bin/tunerrd.pl
|
||||||
usr/local/bin/vpn-restart
|
usr/local/bin/vpn-restart
|
||||||
|
usr/local/bin/vpn-watch
|
||||||
#usr/local/include
|
#usr/local/include
|
||||||
#usr/local/lib
|
#usr/local/lib
|
||||||
#usr/local/sbin
|
#usr/local/sbin
|
||||||
|
|||||||
@@ -1,3 +1,61 @@
|
|||||||
|
------------------------------------------------------------------------
|
||||||
|
r480 | ms | 2007-04-04 14:55:38 +0200 (Wed, 04 Apr 2007) | 3 lines
|
||||||
|
|
||||||
|
Netzwerkscripts erweitert.
|
||||||
|
Sprachsdateien aktualisiert, Menue fuer Firewallloggraphen hinzugefuegt.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r479 | maniacikarus | 2007-04-03 22:53:31 +0200 (Tue, 03 Apr 2007) | 4 lines
|
||||||
|
|
||||||
|
Samba CGI 2sprachig DE und ENG
|
||||||
|
Anpassung an der Samba Controll Datei
|
||||||
|
Tango Icons hinzugefügt
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r478 | ms | 2007-04-03 21:55:47 +0200 (Tue, 03 Apr 2007) | 2 lines
|
||||||
|
|
||||||
|
BWM-NG hinzugefuegt
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r477 | ms | 2007-04-03 20:58:19 +0200 (Tue, 03 Apr 2007) | 2 lines
|
||||||
|
|
||||||
|
Die letzten Quellcodepakete vom IPCop hinzugefuegt.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r476 | ms | 2007-04-03 20:52:26 +0200 (Tue, 03 Apr 2007) | 3 lines
|
||||||
|
|
||||||
|
Tag von SVN295 erstellt, da das die letzte funktionierende Version mit
|
||||||
|
Kernel 2.4 ist.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r475 | ms | 2007-04-03 20:41:59 +0200 (Tue, 03 Apr 2007) | 3 lines
|
||||||
|
|
||||||
|
Farbiger Bash-Prompt.
|
||||||
|
PPPoE-Script zur Einwahl.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r474 | maniacikarus | 2007-03-31 15:26:25 +0200 (Sat, 31 Mar 2007) | 4 lines
|
||||||
|
|
||||||
|
Samba Status und Logauswertung fertiggestelllt
|
||||||
|
ausserdem eine Menge Codefixes
|
||||||
|
einige Icons eingefügt
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r473 | ms | 2007-03-29 22:10:53 +0200 (Thu, 29 Mar 2007) | 2 lines
|
||||||
|
|
||||||
|
Netzwerkbeta-Bugfixes...
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r472 | maniacikarus | 2007-03-29 21:50:28 +0200 (Thu, 29 Mar 2007) | 3 lines
|
||||||
|
|
||||||
|
Upnp fast fertig gestellt zumindest was Web
|
||||||
|
und Ctrl Datei angeht
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r471 | ms | 2007-03-29 20:18:27 +0200 (Thu, 29 Mar 2007) | 2 lines
|
||||||
|
|
||||||
|
Neue Netzwerkerkennung-Beta
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
r470 | ms | 2007-03-28 20:59:56 +0200 (Wed, 28 Mar 2007) | 2 lines
|
r470 | ms | 2007-03-28 20:59:56 +0200 (Wed, 28 Mar 2007) | 2 lines
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
########################################################################
|
########################################################################
|
||||||
# Begin $network_devices/services/pppoe
|
# Begin $network_devices/services/pppoe
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user