mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +02:00
Merge remote-tracking branch 'origin/core66' into next
This commit is contained in:
@@ -38,6 +38,7 @@ srv/web/ipfire/cgi-bin/services.cgi
|
||||
srv/web/ipfire/cgi-bin/updatexlrator.cgi
|
||||
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
usr/bin/watch
|
||||
usr/local/bin/backupiso
|
||||
usr/local/bin/makegraphs
|
||||
usr/local/bin/readhash
|
||||
usr/local/bin/scanhd
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2005-2010 IPFire Team #
|
||||
# Copyright (C) 2005-2013 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 #
|
||||
@@ -176,7 +176,13 @@ print <<END
|
||||
<td align='left'>
|
||||
<input type='radio' name='BACKUPLOGS' value='include'/> $Lang::tr{'include logfiles'}<br/>
|
||||
<input type='radio' name='BACKUPLOGS' value='exclude' checked='checked'/> $Lang::tr{'exclude logfiles'}<br/>
|
||||
<input type='radio' name='BACKUPLOGS' value='iso' /> $Lang::tr{'generate iso'}
|
||||
END
|
||||
;
|
||||
my $MACHINE=`uname -m`;
|
||||
if ( ! ( $MACHINE =~ "arm" )) {
|
||||
print" <input type='radio' name='BACKUPLOGS' value='iso' /> $Lang::tr{'generate iso'}<br/>"
|
||||
}
|
||||
print <<END
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align='center' colspan='2'>
|
||||
|
||||
0
html/cgi-bin/ovpnmain.cgi
Executable file → Normal file
0
html/cgi-bin/ovpnmain.cgi
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2012 IPFire Team <info@ipfire.org> #
|
||||
# Copyright (C) 2007-2013 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 #
|
||||
@@ -3556,15 +3556,15 @@ if ($delaypools) {
|
||||
|
||||
if ($proxysettings{'NO_PROXY_LOCAL'} eq 'on')
|
||||
{
|
||||
print FILE "#Prevent internal proxy access to Green\n";
|
||||
print FILE "http_access deny IPFire_green_servers !IPFire_green_network\n\n";
|
||||
print FILE "#Prevent internal proxy access to Green except IPFire itself\n";
|
||||
print FILE "http_access deny IPFire_green_servers !IPFire_ips !IPFire_green_network\n\n";
|
||||
}
|
||||
|
||||
if ($proxysettings{'NO_PROXY_LOCAL_BLUE'} eq 'on')
|
||||
{
|
||||
print FILE "#Prevent internal proxy access from Blue\n";
|
||||
print FILE "#Prevent internal proxy access from Blue except IPFire itself\n";
|
||||
print FILE "http_access allow IPFire_blue_network IPFire_blue_servers\n";
|
||||
print FILE "http_access deny IPFire_blue_network IPFire_servers\n\n";
|
||||
print FILE "http_access deny IPFire_blue_network !IPFire_ips IPFire_servers\n\n";
|
||||
}
|
||||
|
||||
print FILE <<END
|
||||
|
||||
6
make.sh
6
make.sh
@@ -24,9 +24,9 @@
|
||||
|
||||
NAME="IPFire" # Software name
|
||||
SNAME="ipfire" # Short name
|
||||
VERSION="2.13rc2" # Version number
|
||||
CORE="65" # Core Level (Filename)
|
||||
PAKFIRE_CORE="65" # Core Level (PAKFIRE)
|
||||
VERSION="2.13" # Version number
|
||||
CORE="66" # Core Level (Filename)
|
||||
PAKFIRE_CORE="66" # Core Level (PAKFIRE)
|
||||
GIT_BRANCH=`git status | head -n1 | cut -d" " -f4` # Git Branch
|
||||
SLOGAN="www.ipfire.org" # Software slogan
|
||||
CONFIG_ROOT=/var/ipfire # Configuration rootdir
|
||||
|
||||
@@ -277,7 +277,7 @@ int main(int argc, char *argv[])
|
||||
ctr[TR_CANCEL], NULL);
|
||||
} else {
|
||||
rc = 1;
|
||||
fstype = EXT3;
|
||||
fstype = EXT4;
|
||||
}
|
||||
if (rc == 2)
|
||||
goto EXIT;
|
||||
@@ -596,12 +596,6 @@ EXIT:
|
||||
fclose(flog);
|
||||
newtFinished();
|
||||
|
||||
if (unattended) {
|
||||
// Remove Setup autorun after boot
|
||||
if (system("rm -f /harddisk/etc/rc.d/rcsysinit.d/S75firstsetup"))
|
||||
printf("Unable to disable setup autorun.\n");
|
||||
}
|
||||
|
||||
if (system("/bin/umount /harddisk/proc"))
|
||||
printf("Unable to umount /harddisk/proc.\n");
|
||||
} else {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
COREVER=`cat /opt/pakfire/db/core/mine`
|
||||
COREVER=$(cat /opt/pakfire/db/core/mine)
|
||||
# FIXME: edit this lines before release
|
||||
URL=http://download.ipfire.org/releases/ipfire-2.x/2.11-core$COREVER/
|
||||
ISO=ipfire-2.11.i586-full-core$COREVER.iso
|
||||
URL="http://download.ipfire.org/releases/ipfire-2.x/2.13-core$COREVER/"
|
||||
ISO="ipfire-2.13.i586-full-core$COREVER.iso"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
if [ -z $1 ]; then
|
||||
echo usage: $0 backup-file
|
||||
exit
|
||||
fi
|
||||
@@ -15,22 +15,36 @@ TS=$1
|
||||
mkdir -p /var/tmp/backupiso
|
||||
cd /var/tmp/backupiso
|
||||
|
||||
echo "Fetching ${URL}${ISO}"
|
||||
wget --quiet -c ${URL}${ISO}
|
||||
echo "Fetching ${URL}md5sums.txt"
|
||||
if [ ! -e ${ISO} ]
|
||||
then
|
||||
echo "Fetching ${URL}${ISO}"
|
||||
wget --quiet -c ${URL}${ISO}
|
||||
fi
|
||||
|
||||
echo "Fetching ${URL}${ISO}.md5"
|
||||
wget --quiet -O ${ISO}.md5 ${URL}${ISO}.md5
|
||||
|
||||
echo "Checking md5 of ${ISO}"
|
||||
md5sum --status -c ${ISO}.md5
|
||||
RETVAR="$?"
|
||||
if [ $RETVAR -eq 0 -o $RETVAR -eq 24 ]
|
||||
then
|
||||
echo "md5 is OK"
|
||||
else
|
||||
echo "md5 mismatch"
|
||||
echo "Fetching again ${URL}${ISO}"
|
||||
wget --quiet -O ${ISO} ${URL}${ISO}
|
||||
if [ $? -eq 0 -o $? -eq 24 ]
|
||||
then
|
||||
echo "md5 is OK"
|
||||
else
|
||||
echo "md5 mismatch"
|
||||
echo "Fetching again ${URL}${ISO}"
|
||||
wget --quiet -O ${ISO} ${URL}${ISO}
|
||||
echo "Checking again md5 of ${ISO}"
|
||||
md5sum --status -c ${ISO}.md5
|
||||
if [ $? -eq 0 -o $? -eq 24 ]
|
||||
then
|
||||
echo "md5 is OK"
|
||||
else
|
||||
echo "md5 mismatch"
|
||||
echo "aborting backup because md5 mismatch"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
rm ${ISO}.md5
|
||||
|
||||
echo "Remastering iso"
|
||||
mkdir -p backupiso.tmp.${TS}
|
||||
@@ -45,7 +59,7 @@ cp /var/ipfire/backup/${TS}.ipf backupiso.${TS}
|
||||
echo "Running mkisofs"
|
||||
mkisofs -J -r -V "ipfire backup ${TS}" \
|
||||
-b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-c boot/isolinux/boot.catalog backupiso.${TS} > `basename ${ISO} .iso`-${TS}.iso
|
||||
-c boot/isolinux/boot.catalog backupiso.${TS} > $(basename ${ISO} .iso)-${TS}.iso
|
||||
|
||||
echo "Cleaning up"
|
||||
rm -rf backupiso.${TS}
|
||||
|
||||
@@ -13,7 +13,7 @@ VARNAME='[A-Za-z_][A-Za-z0-9_]*'
|
||||
|
||||
# For the assigned value we only accept a limited number of characters - none
|
||||
# of which are shell metachars
|
||||
VARCHARS='A-Za-z0-9=/,.:_@#+-'
|
||||
VARCHARS='A-Za-z0-9=/,.:%_@#+-'
|
||||
VARVAL="[${VARCHARS}]*"
|
||||
|
||||
sed -ne "s/\(${VARNAME}\)=\(${VARVAL}\)$/\1=\2/p" $1
|
||||
|
||||
Reference in New Issue
Block a user