From c6f13fa77c23a02d649ed1d56c7a366c3a7a2caa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 29 Dec 2011 13:44:09 +0100 Subject: [PATCH 01/28] nagios_nrpe: Disable linking against tcpwrappers. tcpwrappers is $%&"$%&/ and just causing headaches. Use the stupid firewall if you want to block access from remote hosts. --- lfs/nagios_nrpe | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index 34bc5a890..41be3d397 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = nagios_nrpe -PAK_VER = 1 +PAK_VER = 2 DEPS = "nagios" @@ -78,9 +78,15 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=/usr --libexecdir=/usr/lib/nagios \ - --with-nrpe-user=nobody --with-nrpe-group=nobody \ - --with-nagios-user=nobody --with-nagios-group=nobody + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/nagios \ + --with-nrpe-user=nobody \ + --with-nrpe-group=nobody \ + --with-nagios-user=nobody \ + --with-nagios-group=nobody \ + ac_cv_lib_wrap_main=no + cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @rm -rf $(DIR_APP) From 6f5ef200b352a96e9ed7b45a1e64119067c0c98f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 29 Dec 2011 16:29:20 +0100 Subject: [PATCH 02/28] kernel: Enable support for UFS. Unix File System as it is used in FreeBSD 5.x. No write support enabled. --- config/kernel/kernel.config.i586-ipfire | 8 +++++--- config/kernel/kernel.config.i586-ipfire-pae | 4 +++- config/kernel/kernel.config.i586-ipfire-xen | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire index 2c08a1bd2..111573c8b 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.32.41-ipfire -# Tue May 31 14:26:02 2011 +# Linux kernel version: 2.6.32.45-ipfire +# Thu Dec 29 15:16:04 2011 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -3593,7 +3593,9 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m diff --git a/config/kernel/kernel.config.i586-ipfire-pae b/config/kernel/kernel.config.i586-ipfire-pae index 4b23df337..7b0312975 100644 --- a/config/kernel/kernel.config.i586-ipfire-pae +++ b/config/kernel/kernel.config.i586-ipfire-pae @@ -3624,7 +3624,9 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m diff --git a/config/kernel/kernel.config.i586-ipfire-xen b/config/kernel/kernel.config.i586-ipfire-xen index 72fd49098..4f3551d5e 100644 --- a/config/kernel/kernel.config.i586-ipfire-xen +++ b/config/kernel/kernel.config.i586-ipfire-xen @@ -3385,7 +3385,9 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m From 977fc44e2064e4e4cec598c0347c2fb1999ea3dc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 29 Dec 2011 18:59:12 +0100 Subject: [PATCH 03/28] Support BSD partition tables. --- config/kernel/kernel.config.i586-ipfire | 4 ++-- config/kernel/kernel.config.i586-ipfire-pae | 2 +- config/kernel/kernel.config.i586-ipfire-xen | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire index 111573c8b..e2513f036 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.32.45-ipfire -# Thu Dec 29 15:16:04 2011 +# Thu Dec 29 15:32:08 2011 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -3644,7 +3644,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set +CONFIG_BSD_DISKLABEL=y # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set diff --git a/config/kernel/kernel.config.i586-ipfire-pae b/config/kernel/kernel.config.i586-ipfire-pae index 7b0312975..98d222a45 100644 --- a/config/kernel/kernel.config.i586-ipfire-pae +++ b/config/kernel/kernel.config.i586-ipfire-pae @@ -3675,7 +3675,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set +CONFIG_BSD_DISKLABEL=y # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set diff --git a/config/kernel/kernel.config.i586-ipfire-xen b/config/kernel/kernel.config.i586-ipfire-xen index 4f3551d5e..f5c7ba88c 100644 --- a/config/kernel/kernel.config.i586-ipfire-xen +++ b/config/kernel/kernel.config.i586-ipfire-xen @@ -3435,7 +3435,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set +CONFIG_BSD_DISKLABEL=y # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set From 683cc8e470f73e3a964191af3e66b90c80495a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=B6ker?= Date: Thu, 29 Dec 2011 19:35:48 +0100 Subject: [PATCH 04/28] nagios_nrpe: Add --enable-command-args. --- lfs/nagios_nrpe | 1 + 1 file changed, 1 insertion(+) diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index 41be3d397..050c9294f 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -85,6 +85,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) --with-nrpe-group=nobody \ --with-nagios-user=nobody \ --with-nagios-group=nobody \ + --enable-command-args \ ac_cv_lib_wrap_main=no cd $(DIR_APP) && make $(MAKETUNING) From 99b01b84851bcdba605e9d73f727b62b9edde7a7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 7 Jan 2012 22:21:08 +0100 Subject: [PATCH 05/28] openvpn: Fix starting/stopping errors in the control binary. net2net connection were not started when roadwarrior connections were existant. --- src/misc-progs/openvpnctrl.c | 65 ++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/src/misc-progs/openvpnctrl.c b/src/misc-progs/openvpnctrl.c index 5207c240f..e7b128a3f 100644 --- a/src/misc-progs/openvpnctrl.c +++ b/src/misc-progs/openvpnctrl.c @@ -25,12 +25,13 @@ char enableorange[STRING_SIZE] = "off"; char OVPNRED[STRING_SIZE] = "OVPN"; char OVPNBLUE[STRING_SIZE] = "OVPN_BLUE_"; char OVPNORANGE[STRING_SIZE] = "OVPN_ORANGE_"; -char WRAPPERVERSION[STRING_SIZE] = "ipfire-2.2.1"; +char WRAPPERVERSION[STRING_SIZE] = "ipfire-2.2.2"; struct connection_struct { char name[STRING_SIZE]; char type[STRING_SIZE]; char proto[STRING_SIZE]; + char status[STRING_SIZE]; int port; struct connection_struct *next; }; @@ -125,7 +126,9 @@ connection *getConnections() { } *resultptr = '\0'; - if (count == 2) { + if (count == 1) { + strcpy(conn_curr->status, result); + } else if (count == 2) { strcpy(conn_curr->name, result); } else if (count == 4) { strcpy(conn_curr->type, result); @@ -423,7 +426,7 @@ void startDaemon(void) { } } -void startNet2Net(char *name) { +int startNet2Net(char *name) { connection *conn = NULL; connection *conn_iter; @@ -439,9 +442,16 @@ void startNet2Net(char *name) { if (conn == NULL) { fprintf(stderr, "Connection not found.\n"); - exit(1); + return 1; } + if (strcmp(conn->status, "on") != 0) { + fprintf(stderr, "Connection '%s' is not enabled.\n", conn->name); + return 1; + } + + fprintf(stderr, "Starting connection %s...\n", conn->name); + char configfile[STRING_SIZE]; snprintf(configfile, STRING_SIZE - 1, CONFIG_ROOT "/ovpn/n2nconf/%s/%s.conf", conn->name, conn->name); @@ -450,7 +460,7 @@ void startNet2Net(char *name) { if (fp == NULL) { fprintf(stderr, "Could not find configuration file for connection '%s' at '%s'.\n", conn->name, configfile); - exit(2); + return 2; } fclose(fp); @@ -462,9 +472,11 @@ void startNet2Net(char *name) { executeCommand(command); snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config %s", configfile); executeCommand(command); + + return 0; } -void killNet2Net(char *name) { +int killNet2Net(char *name) { connection *conn = NULL; connection *conn_iter; @@ -480,7 +492,7 @@ void killNet2Net(char *name) { if (conn == NULL) { fprintf(stderr, "Connection not found.\n"); - exit(1); + return 1; } char pidfile[STRING_SIZE]; @@ -488,39 +500,64 @@ void killNet2Net(char *name) { int pid = readPidFile(pidfile); if (!pid > 0) { - exit(1); + fprintf(stderr, "Could not read pid file of connection %s.", conn->name); + return 1; } - fprintf(stderr, "Killing PID %d.\n", pid); + fprintf(stderr, "Killing connection %s (PID %d)...\n", conn->name, pid); kill(pid, SIGTERM); char command[STRING_SIZE]; snprintf(command, STRING_SIZE - 1, "/bin/rm -f %s", pidfile); executeCommand(command); - exit(0); + return 0; } void startAllNet2Net() { + int exitcode = 0, _exitcode = 0; + connection *conn = getConnections(); while(conn) { - startNet2Net(conn->name); + /* Skip all connections that are not of type "net" or disabled. */ + if ((strcmp(conn->type, "net") != 0) || (strcmp(conn->status, "on") != 0)) { + conn = conn->next; + continue; + } + + _exitcode = startNet2Net(conn->name); conn = conn->next; + + if (_exitcode > exitcode) { + exitcode = _exitcode; + } } - exit(0); + exit(exitcode); } void killAllNet2Net() { + int exitcode = 0, _exitcode = 0; + connection *conn = getConnections(); while(conn) { - killNet2Net(conn->name); + /* Skip all connections that are not of type "net". */ + if (strcmp(conn->type, "net") != 0) { + conn = conn->next; + continue; + } + + _exitcode = killNet2Net(conn->name); conn = conn->next; + + if (_exitcode > exitcode) { + exitcode = _exitcode; + } } - exit(0); + exit(exitcode); } void displayopenvpn(void) { From d520da17045d2b037ea79b83d71b513e3f48840d Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 15 Jan 2012 10:22:25 +0100 Subject: [PATCH 06/28] start core56. --- config/rootfiles/core/56/exclude | 9 +++ config/rootfiles/core/56/filelists/files | 2 + config/rootfiles/core/56/meta | 1 + config/rootfiles/core/56/update.sh | 74 ++++++++++++++++++++++++ make.sh | 2 +- 5 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 config/rootfiles/core/56/exclude create mode 100644 config/rootfiles/core/56/filelists/files create mode 100644 config/rootfiles/core/56/meta create mode 100644 config/rootfiles/core/56/update.sh diff --git a/config/rootfiles/core/56/exclude b/config/rootfiles/core/56/exclude new file mode 100644 index 000000000..ca3adf5c0 --- /dev/null +++ b/config/rootfiles/core/56/exclude @@ -0,0 +1,9 @@ +srv/web/ipfire/html/proxy.pac +etc/udev/rules.d/30-persistent-network.rules +etc/ipsec.conf +etc/ipsec.secrets +etc/ipsec.user.conf +etc/ipsec.user.secrets +var/updatecache +etc/localtime +var/ipfire/ovpn diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files new file mode 100644 index 000000000..409e5fe8a --- /dev/null +++ b/config/rootfiles/core/56/filelists/files @@ -0,0 +1,2 @@ +etc/system-release +etc/issue diff --git a/config/rootfiles/core/56/meta b/config/rootfiles/core/56/meta new file mode 100644 index 000000000..d547fa86f --- /dev/null +++ b/config/rootfiles/core/56/meta @@ -0,0 +1 @@ +DEPS="" diff --git a/config/rootfiles/core/56/update.sh b/config/rootfiles/core/56/update.sh new file mode 100644 index 000000000..48ba06662 --- /dev/null +++ b/config/rootfiles/core/56/update.sh @@ -0,0 +1,74 @@ +#!/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) 2012 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +/usr/local/bin/backupctrl exclude >/dev/null 2>&1 + +# +# Remove old core updates from pakfire cache to save space... +core=56 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + +# +#Stop services + +# +#Extract files +extract_files + +# +#Start services + + +# +#Update Language cache +#perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" + +#Rebuild module dep's +#depmod -a 2.6.32.45-ipfire >/dev/null 2>&1 +#depmod -a 2.6.32.45-ipfire-pae >/dev/null 2>&1 +#depmod -a 2.6.32.45-ipfire-xen >/dev/null 2>&1 + +#Rebuild initrd's because some compat-wireless modules are inside +#/sbin/dracut --force --verbose /boot/ipfirerd-2.6.32.45.img 2.6.32.45-ipfire +#if [ -e /boot/ipfirerd-2.6.32.45-pae.img ]; then +#/sbin/dracut --force --verbose /boot/ipfirerd-2.6.32.45-pae.img 2.6.32.45-ipfire-pae +#fi +#if [ -e /boot/ipfirerd-2.6.32.45-xen.img ]; then +#/sbin/dracut --force --verbose /boot/ipfirerd-2.6.32.45-xen.img 2.6.32.45-ipfire-xen +#fi + +sync + +# This update need a reboot... +#touch /var/run/need_reboot + +# +#Finish +/etc/init.d/fireinfo start +sendprofile +#Don't report the exitcode last command +exit 0 diff --git a/make.sh b/make.sh index 1730275b8..3dad5a310 100755 --- a/make.sh +++ b/make.sh @@ -25,7 +25,7 @@ NAME="IPFire" # Software name SNAME="ipfire" # Short name VERSION="2.11" # Version number -CORE="55" # Core Level (Filename) +CORE="56" # Core Level (Filename) PAKFIRE_CORE="55" # Core Level (PAKFIRE) GIT_BRANCH=`git status | head -n1 | cut -d" " -f4` # Git Branch SLOGAN="www.ipfire.org" # Software slogan From 269e21c66206f4befdde25ceaec820467ff1cbe3 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 16 Jan 2012 22:22:17 +0100 Subject: [PATCH 07/28] Fix block device detection for graphs and other scripts. --- config/rootfiles/core/56/filelists/files | 5 +++++ html/cgi-bin/hardwaregraphs.cgi | 4 ++-- html/cgi-bin/media.cgi | 4 ++-- src/initscripts/init.d/smartenabler | 2 +- src/scripts/hddshutdown | 3 ++- src/scripts/makegraphs | 2 +- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files index 409e5fe8a..c82a52e08 100644 --- a/config/rootfiles/core/56/filelists/files +++ b/config/rootfiles/core/56/filelists/files @@ -1,2 +1,7 @@ etc/system-release etc/issue +etc/rc.d/init.d/smartenabler +srv/web/ipfire/cgi-bin/hardwaregraphs.cgi +srv/web/ipfire/cgi-bin/media.cgi +usr/local/bin/hddshutdown +usr/local/bin/makegraphs diff --git a/html/cgi-bin/hardwaregraphs.cgi b/html/cgi-bin/hardwaregraphs.cgi index e32f07c25..b0a5d3a36 100644 --- a/html/cgi-bin/hardwaregraphs.cgi +++ b/html/cgi-bin/hardwaregraphs.cgi @@ -67,7 +67,7 @@ if ( $querry[0] =~ "hwtemp"){ print "Content-type: image/png\n\n"; binmode(STDOUT); &Graphs::updatethermaltempgraph($querry[1]); -}elsif ( $querry[0] =~ "sd?" || $querry[0] =~ "hd?" || $querry[0] =~ "xvd??" ){ +}elsif ( $querry[0] =~ "sd?" ){ print "Content-type: image/png\n\n"; binmode(STDOUT); &Graphs::updatehddgraph($querry[0],$querry[1]); @@ -93,7 +93,7 @@ if ( $querry[0] =~ "hwtemp"){ &General::writehash("${General::swroot}/sensors/settings", \%sensorsettings); } - my @disks = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; + my @disks = `ls -1 /sys/block | grep -E '^sd' | sort | uniq`; foreach (@disks){ my $disk = $_; diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi index 9fbb04132..f67c1787a 100644 --- a/html/cgi-bin/media.cgi +++ b/html/cgi-bin/media.cgi @@ -45,9 +45,9 @@ my @querry = split(/\?/,$ENV{'QUERY_STRING'}); $querry[0] = '' unless defined $querry[0]; $querry[1] = 'hour' unless defined $querry[1]; -my @devices = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; +my @devices = `ls -1 /sys/block | grep -E '^sd|^xvd|^vd|^md' | sort | uniq`; -if ( $querry[0] =~ "sd?" || $querry[0] =~ "hd?" || $querry[0] =~ "xvd??"){ +if ( $querry[0] =~ "sd?" || $querry[0] =~ "xvd??" || $querry[0] =~ "vd?" || $querry[0] =~ "md*" ){ print "Content-type: image/png\n\n"; binmode(STDOUT); diff --git a/src/initscripts/init.d/smartenabler b/src/initscripts/init.d/smartenabler index 7344c2f1c..4df693656 100644 --- a/src/initscripts/init.d/smartenabler +++ b/src/initscripts/init.d/smartenabler @@ -7,7 +7,7 @@ case "$1" in start) boot_mesg -n "Enabling S.M.A.R.T.: "; - for disk in `find /sys/block/* -maxdepth 0 ! -name sr* ! -name ram* ! -name loop* -exec basename {} \; | sort | uniq`; do + for disk in `ls -1 /sys/block | grep -E '^sd' | sort | uniq`; do /usr/sbin/smartctl --smart=on /dev/$disk > /dev/nul; if [ ${?} = 0 ]; then boot_mesg -n "$SUCCESS$disk$NORMAL "; diff --git a/src/scripts/hddshutdown b/src/scripts/hddshutdown index dc49a1706..146cc7347 100644 --- a/src/scripts/hddshutdown +++ b/src/scripts/hddshutdown @@ -22,7 +22,8 @@ # IPFire HDD Shutdown state reader # -my @devices = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; +# Also devices that cannot shutdown must be here for mediagraphs. +my @devices = `ls -1 /sys/block | grep -E '^sd|^xvd|^vd|^md' | sort | uniq`; my $diskstats = ""; my $newdiskstats = ""; my $debug = 1; diff --git a/src/scripts/makegraphs b/src/scripts/makegraphs index 48444f5e1..7cdd2f9bc 100644 --- a/src/scripts/makegraphs +++ b/src/scripts/makegraphs @@ -102,7 +102,7 @@ sub updatehdddata{ ## Update vnstat system ('/usr/bin/vnstat -u'); -my @disks = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; +my @disks = `ls -1 /sys/block | grep -E '^sd|^xvd|^vd|^md' | sort | uniq`; system("unlink /var/run/hddstatus 2>/dev/null && touch /var/run/hddstatus"); foreach (@disks){ my $disk = $_; From a6b7619bab60277309da1c2ba1a77708798caebb Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 17 Jan 2012 20:29:36 +0100 Subject: [PATCH 08/28] serial console: set baudrate to 115200. --- config/grub/grub.conf | 4 ++-- config/rootfiles/core/56/update.sh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/grub/grub.conf b/config/grub/grub.conf index d71e0c6f6..553b10d42 100644 --- a/config/grub/grub.conf +++ b/config/grub/grub.conf @@ -5,9 +5,9 @@ background = ffffff #hiddenmenu # *** If you want use serial console comment next line splashimage (hd0,0)/grub/ipfire.xpm.gz -# *** add "console=ttyS0,38400n8" to kernel cmdline, +# *** add "console=ttyS0,115200n8" to kernel cmdline, # *** uncomment following lines and check also inittab -#serial --unit=0 --speed=38400 +#serial --unit=0 --speed=115200 #terminal --timeout=1 serial console title IPFire root (hd0,0) diff --git a/config/rootfiles/core/56/update.sh b/config/rootfiles/core/56/update.sh index 48ba06662..0b3845cc1 100644 --- a/config/rootfiles/core/56/update.sh +++ b/config/rootfiles/core/56/update.sh @@ -39,6 +39,11 @@ done #Extract files extract_files +# +#Edit baudrate in grub.conf and inittab +sed -i -e "s|38400|115200|g" /boot/grub/grub.conf +sed -i -e "s|38400|115200|g" /etc/inittab + # #Start services From e18e19d2911121c28f669cdd229e2b2d12298c6f Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 19 Jan 2012 19:27:19 +0100 Subject: [PATCH 09/28] Revert "Support BSD partition tables." This reverts commit 977fc44e2064e4e4cec598c0347c2fb1999ea3dc. This has to wait until next kernel release. Than we should revert the revert. --- config/kernel/kernel.config.i586-ipfire | 4 ++-- config/kernel/kernel.config.i586-ipfire-pae | 2 +- config/kernel/kernel.config.i586-ipfire-xen | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire index e2513f036..111573c8b 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.32.45-ipfire -# Thu Dec 29 15:32:08 2011 +# Thu Dec 29 15:16:04 2011 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -3644,7 +3644,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -CONFIG_BSD_DISKLABEL=y +# CONFIG_BSD_DISKLABEL is not set # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set diff --git a/config/kernel/kernel.config.i586-ipfire-pae b/config/kernel/kernel.config.i586-ipfire-pae index 98d222a45..7b0312975 100644 --- a/config/kernel/kernel.config.i586-ipfire-pae +++ b/config/kernel/kernel.config.i586-ipfire-pae @@ -3675,7 +3675,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -CONFIG_BSD_DISKLABEL=y +# CONFIG_BSD_DISKLABEL is not set # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set diff --git a/config/kernel/kernel.config.i586-ipfire-xen b/config/kernel/kernel.config.i586-ipfire-xen index f5c7ba88c..4f3551d5e 100644 --- a/config/kernel/kernel.config.i586-ipfire-xen +++ b/config/kernel/kernel.config.i586-ipfire-xen @@ -3435,7 +3435,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -CONFIG_BSD_DISKLABEL=y +# CONFIG_BSD_DISKLABEL is not set # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set From 7d87d796c7823eb66843dbe0a99f795be48f5ef6 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 19 Jan 2012 19:28:21 +0100 Subject: [PATCH 10/28] Revert "kernel: Enable support for UFS." This reverts commit 6f5ef200b352a96e9ed7b45a1e64119067c0c98f. This has to wait until next kernel release. --- config/kernel/kernel.config.i586-ipfire | 8 +++----- config/kernel/kernel.config.i586-ipfire-pae | 4 +--- config/kernel/kernel.config.i586-ipfire-xen | 4 +--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire index 111573c8b..2c08a1bd2 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.32.45-ipfire -# Thu Dec 29 15:16:04 2011 +# Linux kernel version: 2.6.32.41-ipfire +# Tue May 31 14:26:02 2011 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -3593,9 +3593,7 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -CONFIG_UFS_FS=m -# CONFIG_UFS_FS_WRITE is not set -# CONFIG_UFS_DEBUG is not set +# CONFIG_UFS_FS is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m diff --git a/config/kernel/kernel.config.i586-ipfire-pae b/config/kernel/kernel.config.i586-ipfire-pae index 7b0312975..4b23df337 100644 --- a/config/kernel/kernel.config.i586-ipfire-pae +++ b/config/kernel/kernel.config.i586-ipfire-pae @@ -3624,9 +3624,7 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -CONFIG_UFS_FS=m -# CONFIG_UFS_FS_WRITE is not set -# CONFIG_UFS_DEBUG is not set +# CONFIG_UFS_FS is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m diff --git a/config/kernel/kernel.config.i586-ipfire-xen b/config/kernel/kernel.config.i586-ipfire-xen index 4f3551d5e..72fd49098 100644 --- a/config/kernel/kernel.config.i586-ipfire-xen +++ b/config/kernel/kernel.config.i586-ipfire-xen @@ -3385,9 +3385,7 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -CONFIG_UFS_FS=m -# CONFIG_UFS_FS_WRITE is not set -# CONFIG_UFS_DEBUG is not set +# CONFIG_UFS_FS is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m From 6333b4e7257cfeb79a381de1f62bdc9a20070eaf Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 19 Jan 2012 21:39:58 +0100 Subject: [PATCH 11/28] openssl: security update to 0.9.8t. prevent DTLS DoS attak (CVE-2012-0050) --- config/rootfiles/core/56/filelists/openssh | 1 + config/rootfiles/core/56/filelists/openssl | 1 + config/rootfiles/core/56/update.sh | 2 +- lfs/openssl | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 120000 config/rootfiles/core/56/filelists/openssh create mode 120000 config/rootfiles/core/56/filelists/openssl diff --git a/config/rootfiles/core/56/filelists/openssh b/config/rootfiles/core/56/filelists/openssh new file mode 120000 index 000000000..d8c77fd8e --- /dev/null +++ b/config/rootfiles/core/56/filelists/openssh @@ -0,0 +1 @@ +../../../common/openssh \ No newline at end of file diff --git a/config/rootfiles/core/56/filelists/openssl b/config/rootfiles/core/56/filelists/openssl new file mode 120000 index 000000000..e011a9266 --- /dev/null +++ b/config/rootfiles/core/56/filelists/openssl @@ -0,0 +1 @@ +../../../common/openssl \ No newline at end of file diff --git a/config/rootfiles/core/56/update.sh b/config/rootfiles/core/56/update.sh index 0b3845cc1..cde93e1f4 100644 --- a/config/rootfiles/core/56/update.sh +++ b/config/rootfiles/core/56/update.sh @@ -69,7 +69,7 @@ sed -i -e "s|38400|115200|g" /etc/inittab sync # This update need a reboot... -#touch /var/run/need_reboot +touch /var/run/need_reboot # #Finish diff --git a/lfs/openssl b/lfs/openssl index de39d60db..21b6c0ed6 100644 --- a/lfs/openssl +++ b/lfs/openssl @@ -24,7 +24,7 @@ include Config -VER = 0.9.8s +VER = 0.9.8t THISAPP = openssl-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = fbf71e8e050bc1ec290b7468bab1a76e +$(DL_FILE)_MD5 = f5dabb7ffb068eecf245f1b2151df100 install : $(TARGET) From a6d0d790ebe2c72aa85b83961ab1915fec14ab20 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 20 Jan 2012 08:02:31 +0100 Subject: [PATCH 12/28] flash-image: add automatic resizing /var partition at first boot. --- config/rootfiles/common/armv5tel/initscripts | 2 + config/rootfiles/common/i586/initscripts | 2 + lfs/flash-images | 19 +++++++- src/initscripts/init.d/fsresize | 46 ++++++++++++++++++++ src/initscripts/init.d/partresize | 45 +++++++++++++++++++ 5 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 src/initscripts/init.d/fsresize create mode 100644 src/initscripts/init.d/partresize diff --git a/config/rootfiles/common/armv5tel/initscripts b/config/rootfiles/common/armv5tel/initscripts index 22a7c1391..a7f0fed35 100644 --- a/config/rootfiles/common/armv5tel/initscripts +++ b/config/rootfiles/common/armv5tel/initscripts @@ -93,6 +93,8 @@ etc/rc.d/init.d/networking/red.up/99-pakfire-update etc/rc.d/init.d/ntp #etc/rc.d/init.d/nut #etc/rc.d/init.d/openvmtools +etc/rc.d/init.d/partresize +etc/rc.d/init.d/fsresize #etc/rc.d/init.d/portmap #etc/rc.d/init.d/postfix #etc/rc.d/init.d/pound diff --git a/config/rootfiles/common/i586/initscripts b/config/rootfiles/common/i586/initscripts index 65fa0cd51..91e33081a 100644 --- a/config/rootfiles/common/i586/initscripts +++ b/config/rootfiles/common/i586/initscripts @@ -94,6 +94,8 @@ etc/rc.d/init.d/networking/red.up/99-pakfire-update etc/rc.d/init.d/ntp #etc/rc.d/init.d/nut #etc/rc.d/init.d/openvmtools +etc/rc.d/init.d/partresize +etc/rc.d/init.d/fsresize #etc/rc.d/init.d/portmap #etc/rc.d/init.d/postfix #etc/rc.d/init.d/pound diff --git a/lfs/flash-images b/lfs/flash-images index 7888423b6..0b07704b1 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -111,6 +111,11 @@ ifneq "$(MACHINE_TYPE)" "arm" sed -i -e "s|ROOT|UUID=$$(blkid -sUUID $(IMGroot) | cut -d'"' -f2)|g" $(MNThdd)/boot/grub/grub.conf ln -s grub.conf $(MNThdd)/boot/grub/menu.lst + # Setup symlink for partresize at first boot... + ln -sf ../init.d/partresize $(MNThdd)/etc/rc.d/rcsysinit.d/S25partresize + # Setup symlink for fsresize at second boot... + ln -sf ../init.d/fsresize $(MNThdd)/etc/rc.d/rcsysinit.d/S26fsresize + # Copy grub files manually cp -f $(MNThdd)/usr/share/grub/i386-pc/* $(MNThdd)/boot/grub/ endif @@ -123,12 +128,18 @@ endif umount $(MNThdd)/var umount $(MNThdd) - # zerofree the ext3 images to get better compression + # zerofree the ext2 images to get better compression ifneq "$(MACHINE_TYPE)" "arm" zerofree $(IMGboot) + -fsck.ext2 -f -y $(IMGboot) + fsck.ext2 -f -y $(IMGboot) endif zerofree $(IMGroot) + -fsck.ext2 -f -y $(IMGroot) + fsck.ext2 -f -y $(IMGroot) zerofree $(IMGvar) + -fsck.ext2 -f -y $(IMGvar) + fsck.ext2 -f -y $(IMGvar) # Cat to an image cat $(IMGpart) $(IMGboot) $(IMGroot) $(IMGvar) > $(IMGinst) @@ -175,9 +186,15 @@ endif # zerofree the ext3 images to get better compression ifneq "$(MACHINE_TYPE)" "arm" zerofree $(IMGboot) + -fsck.ext2 -f -y $(IMGboot) + fsck.ext2 -f -y $(IMGboot) endif zerofree $(IMGroot) + -fsck.ext2 -f -y $(IMGroot) + fsck.ext2 -f -y $(IMGroot) zerofree $(IMGvar) + -fsck.ext2 -f -y $(IMGvar) + fsck.ext2 -f -y $(IMGvar) # Cat to an image cat $(IMGpart) $(IMGboot) $(IMGroot) $(IMGvar) > $(IMGinsts) diff --git a/src/initscripts/init.d/fsresize b/src/initscripts/init.d/fsresize new file mode 100644 index 000000000..b1af720b5 --- /dev/null +++ b/src/initscripts/init.d/fsresize @@ -0,0 +1,46 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/fsresize +# +# Description : Resize the /var filesystem +# +# Authors : Arne Fitzenreiter - arne_f@ipfire.org +# +# Version : 1.00 +# +# Notes : +# +######################################################################## + +. /etc/sysconfig/rc +. ${rc_functions} + +case "${1}" in + start) + boot_mesg "Autoresize /var partition to use the whole drive ..." + + # Ensure that / is writeable + mount + + # Detect device + ROOT=`mount | grep -m1 " / " | cut -d" " -f1`; + DRV=${ROOT::`expr length $ROOT`-1} + boot_mesg " * check filesystem on ${DRV}4 before resize ..." + fsck -f ${DRV}4 + + boot_mesg " * resize ${DRV}4 ..." + resize2fs -p ${DRV}4 + evaluate_retval + + # Erase symlink, it should run only once + rm -f /etc/rc.d/rcsysinit.d/S26fsresize + + exit 0; + ;; + *) + echo "Usage: ${0} {start}" + exit 1 + ;; +esac + +# End $rc_base/init.d/26fsresize diff --git a/src/initscripts/init.d/partresize b/src/initscripts/init.d/partresize new file mode 100644 index 000000000..9c9a60998 --- /dev/null +++ b/src/initscripts/init.d/partresize @@ -0,0 +1,45 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/partresize +# +# Description : Resize the /var partition to the drivesize +# +# Authors : Arne Fitzenreiter - arne_f@ipfire.org +# +# Version : 1.00 +# +# Notes : +# +######################################################################## + +. /etc/sysconfig/rc +. ${rc_functions} + +case "${1}" in + start) + + # Ensure that / is writeable + mount -o remount,rw / + + # Detect device + ROOT=`mount | grep -m1 " / " | cut -d" " -f1`; + DRV=${ROOT::`expr length $ROOT`-1} + + boot_mesg "Change Partition 4 to all free space ..." + echo -e 'd\n4\nn\np\n4\n\n\nw\nq\n' | fdisk ${DRV} + + # Erase symlink, it should run only once + rm -f /etc/rc.d/rcsysinit.d/S25partresize + + boot_mesg "Rebooting ..." + reboot -f + + ;; + *) + echo "Usage: ${0} {start}" + exit 1 + ;; +esac + +# End $rc_base/init.d/partresize + From fbb2ebd68446a51c4d6d543210a1f53b7fcd73dc Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 20 Jan 2012 21:06:45 +0100 Subject: [PATCH 13/28] flash-image: improve mount/dismount at partition resize. fix missing parameters at mount. remount / ro before reboot to leave a clean rootfs. --- src/initscripts/init.d/fsresize | 9 +++++---- src/initscripts/init.d/partresize | 7 +++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/initscripts/init.d/fsresize b/src/initscripts/init.d/fsresize index b1af720b5..0afe77900 100644 --- a/src/initscripts/init.d/fsresize +++ b/src/initscripts/init.d/fsresize @@ -17,11 +17,11 @@ case "${1}" in start) + boot_mesg "Mounting root file system in read/write mode ..." + mount -o remount,rw / > /dev/null + evaluate_retval + boot_mesg "Autoresize /var partition to use the whole drive ..." - - # Ensure that / is writeable - mount - # Detect device ROOT=`mount | grep -m1 " / " | cut -d" " -f1`; DRV=${ROOT::`expr length $ROOT`-1} @@ -34,6 +34,7 @@ case "${1}" in # Erase symlink, it should run only once rm -f /etc/rc.d/rcsysinit.d/S26fsresize + sync exit 0; ;; diff --git a/src/initscripts/init.d/partresize b/src/initscripts/init.d/partresize index 9c9a60998..8eddc46c3 100644 --- a/src/initscripts/init.d/partresize +++ b/src/initscripts/init.d/partresize @@ -18,8 +18,9 @@ case "${1}" in start) - # Ensure that / is writeable - mount -o remount,rw / + boot_mesg "Mounting root file system in read/write mode ..." + mount -o remount,rw / > /dev/null + evaluate_retval # Detect device ROOT=`mount | grep -m1 " / " | cut -d" " -f1`; @@ -32,6 +33,8 @@ case "${1}" in rm -f /etc/rc.d/rcsysinit.d/S25partresize boot_mesg "Rebooting ..." + sync + mount -o remount,ro / > /dev/null reboot -f ;; From 0b236f60676f47cf1c255d0d591824f2100aed7c Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 14:09:34 +0100 Subject: [PATCH 14/28] rsync: update to 3.0.9. --- lfs/rsync | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lfs/rsync b/lfs/rsync index e15198727..2e65268ed 100644 --- a/lfs/rsync +++ b/lfs/rsync @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # +# Copyright (C) 2007-2012 IPFire Team # # # # 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 # @@ -24,7 +24,7 @@ include Config -VER = 3.0.8 +VER = 3.0.9 THISAPP = rsync-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = rsync -PAK_VER = 6 +PAK_VER = 7 DEPS = "" @@ -44,7 +44,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 0ee8346ce16bdfe4c88a236e94c752b4 +$(DL_FILE)_MD5 = 5ee72266fe2c1822333c407e1761b92b install : $(TARGET) From 18252bf79499ec809dc4f4eeba6fecffd50bd3e6 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 17:10:05 +0100 Subject: [PATCH 15/28] usb-modeswitch: update to 1.2.2 and data 20120120. --- config/rootfiles/common/usb_modeswitch_data | 15 +++++++++++++++ config/rootfiles/core/56/filelists/usb_modeswitch | 1 + .../core/56/filelists/usb_modeswitch_data | 1 + lfs/usb_modeswitch | 6 +++--- lfs/usb_modeswitch_data | 4 ++-- 5 files changed, 22 insertions(+), 5 deletions(-) create mode 120000 config/rootfiles/core/56/filelists/usb_modeswitch create mode 120000 config/rootfiles/core/56/filelists/usb_modeswitch_data diff --git a/config/rootfiles/common/usb_modeswitch_data b/config/rootfiles/common/usb_modeswitch_data index 953f851fa..0ebcf6220 100644 --- a/config/rootfiles/common/usb_modeswitch_data +++ b/config/rootfiles/common/usb_modeswitch_data @@ -11,12 +11,14 @@ usr/share/usb_modeswitch/0471:1210:uMa=Philips usr/share/usb_modeswitch/0471:1210:uMa=Wisue usr/share/usb_modeswitch/0471:1237 usr/share/usb_modeswitch/0482:024d +usr/share/usb_modeswitch/04bb:bccd usr/share/usb_modeswitch/04e8:689a usr/share/usb_modeswitch/04e8:f000:sMo=U209 usr/share/usb_modeswitch/057c:84ff usr/share/usb_modeswitch/05c6:1000:sVe=GT usr/share/usb_modeswitch/05c6:1000:sVe=Option usr/share/usb_modeswitch/05c6:1000:uMa=AnyDATA +usr/share/usb_modeswitch/05c6:1000:uMa=DGT usr/share/usb_modeswitch/05c6:1000:uMa=Option usr/share/usb_modeswitch/05c6:1000:uMa=SAMSUNG usr/share/usb_modeswitch/05c6:1000:uMa=SSE @@ -57,6 +59,7 @@ usr/share/usb_modeswitch/0af0:7401 usr/share/usb_modeswitch/0af0:7501 usr/share/usb_modeswitch/0af0:7601 usr/share/usb_modeswitch/0af0:7701 +usr/share/usb_modeswitch/0af0:7706 usr/share/usb_modeswitch/0af0:7801 usr/share/usb_modeswitch/0af0:7901 usr/share/usb_modeswitch/0af0:7a01 @@ -73,6 +76,7 @@ usr/share/usb_modeswitch/0af0:8900 usr/share/usb_modeswitch/0af0:9000 usr/share/usb_modeswitch/0af0:c031 usr/share/usb_modeswitch/0af0:c100 +usr/share/usb_modeswitch/0af0:d001 usr/share/usb_modeswitch/0af0:d013 usr/share/usb_modeswitch/0af0:d031 usr/share/usb_modeswitch/0af0:d033 @@ -100,7 +104,11 @@ usr/share/usb_modeswitch/1004:1000 usr/share/usb_modeswitch/1004:607f usr/share/usb_modeswitch/1004:613a usr/share/usb_modeswitch/1004:613f +usr/share/usb_modeswitch/1004:614e usr/share/usb_modeswitch/1004:6190 +usr/share/usb_modeswitch/1004:61dd +usr/share/usb_modeswitch/1004:61e7 +usr/share/usb_modeswitch/1004:61eb usr/share/usb_modeswitch/1033:0035 usr/share/usb_modeswitch/106c:3b03 usr/share/usb_modeswitch/106c:3b05 @@ -134,6 +142,7 @@ usr/share/usb_modeswitch/12d1:1557 usr/share/usb_modeswitch/12d1:1c0b usr/share/usb_modeswitch/12d1:1d50 usr/share/usb_modeswitch/12d1:1da1 +usr/share/usb_modeswitch/12d1:1f01 usr/share/usb_modeswitch/12d1:380b usr/share/usb_modeswitch/1307:1169 usr/share/usb_modeswitch/1410:5010 @@ -162,8 +171,10 @@ usr/share/usb_modeswitch/19d2:0101 usr/share/usb_modeswitch/19d2:0103 usr/share/usb_modeswitch/19d2:0110 usr/share/usb_modeswitch/19d2:0115 +usr/share/usb_modeswitch/19d2:0146 usr/share/usb_modeswitch/19d2:0149 usr/share/usb_modeswitch/19d2:0166 +usr/share/usb_modeswitch/19d2:0169 usr/share/usb_modeswitch/19d2:1001 usr/share/usb_modeswitch/19d2:1007 usr/share/usb_modeswitch/19d2:1009 @@ -175,6 +186,7 @@ usr/share/usb_modeswitch/19d2:1201 usr/share/usb_modeswitch/19d2:1216 usr/share/usb_modeswitch/19d2:1224 usr/share/usb_modeswitch/19d2:1517 +usr/share/usb_modeswitch/19d2:1520 usr/share/usb_modeswitch/19d2:2000 usr/share/usb_modeswitch/19d2:bccd usr/share/usb_modeswitch/19d2:ffde @@ -182,6 +194,7 @@ usr/share/usb_modeswitch/19d2:ffe6 usr/share/usb_modeswitch/19d2:fff5 usr/share/usb_modeswitch/19d2:fff6 usr/share/usb_modeswitch/1a8d:1000 +usr/share/usb_modeswitch/1a8d:2000 usr/share/usb_modeswitch/1ab7:5700 usr/share/usb_modeswitch/1b7d:0700 usr/share/usb_modeswitch/1bbb:f000 @@ -204,8 +217,10 @@ usr/share/usb_modeswitch/1ee8:0040 usr/share/usb_modeswitch/1f28:0021 usr/share/usb_modeswitch/1fac:0032 usr/share/usb_modeswitch/1fac:0130 +usr/share/usb_modeswitch/201e:1023 usr/share/usb_modeswitch/201e:2009 usr/share/usb_modeswitch/2020:f00e +usr/share/usb_modeswitch/21f5:1000 usr/share/usb_modeswitch/230d:0001 usr/share/usb_modeswitch/230d:0007 usr/share/usb_modeswitch/8888:6500 diff --git a/config/rootfiles/core/56/filelists/usb_modeswitch b/config/rootfiles/core/56/filelists/usb_modeswitch new file mode 120000 index 000000000..acbab6f33 --- /dev/null +++ b/config/rootfiles/core/56/filelists/usb_modeswitch @@ -0,0 +1 @@ +../../../common/usb_modeswitch \ No newline at end of file diff --git a/config/rootfiles/core/56/filelists/usb_modeswitch_data b/config/rootfiles/core/56/filelists/usb_modeswitch_data new file mode 120000 index 000000000..4cbce46cf --- /dev/null +++ b/config/rootfiles/core/56/filelists/usb_modeswitch_data @@ -0,0 +1 @@ +../../../common/usb_modeswitch_data \ No newline at end of file diff --git a/lfs/usb_modeswitch b/lfs/usb_modeswitch index 1d6ac8134..db9ca3a47 100644 --- a/lfs/usb_modeswitch +++ b/lfs/usb_modeswitch @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # +# Copyright (C) 2007-2012 IPFire Team # # # # 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 # @@ -24,7 +24,7 @@ include Config -VER = 1.2.0 +VER = 1.2.2 THISAPP = usb-modeswitch-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 1932ab96d6e3c5e0a6bdfac863338627 +$(DL_FILE)_MD5 = 4f3d3b9342b59b488089a8a81abda3ae install : $(TARGET) diff --git a/lfs/usb_modeswitch_data b/lfs/usb_modeswitch_data index 990c95087..2b99bd079 100644 --- a/lfs/usb_modeswitch_data +++ b/lfs/usb_modeswitch_data @@ -24,7 +24,7 @@ include Config -VER = 20111023 +VER = 20120120 THISAPP = usb-modeswitch-data-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 6e7cb67d0428bda241600b038ba11aeb +$(DL_FILE)_MD5 = c899cc9c71bb35f3ec600b7cd1455c65 install : $(TARGET) From 120cedf2852b71cd06cdacda10a18a8e7f2eeb8a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 17:17:35 +0100 Subject: [PATCH 16/28] python-m2crypto: rootfile update. --- config/rootfiles/common/armv5tel/python-m2crypto | 1 + config/rootfiles/common/i586/python-m2crypto | 1 + config/rootfiles/common/python-m2crypto | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 config/rootfiles/common/armv5tel/python-m2crypto create mode 100644 config/rootfiles/common/i586/python-m2crypto delete mode 100644 config/rootfiles/common/python-m2crypto diff --git a/config/rootfiles/common/armv5tel/python-m2crypto b/config/rootfiles/common/armv5tel/python-m2crypto new file mode 100644 index 000000000..6f51e3ddf --- /dev/null +++ b/config/rootfiles/common/armv5tel/python-m2crypto @@ -0,0 +1 @@ +#usr/lib/python2.7/site-packages/M2Crypto-0.21.1-py2.7-linux-armv5tel.egg diff --git a/config/rootfiles/common/i586/python-m2crypto b/config/rootfiles/common/i586/python-m2crypto new file mode 100644 index 000000000..73172148e --- /dev/null +++ b/config/rootfiles/common/i586/python-m2crypto @@ -0,0 +1 @@ +#usr/lib/python2.7/site-packages/M2Crypto-0.21.1-py2.7-linux-i586.egg diff --git a/config/rootfiles/common/python-m2crypto b/config/rootfiles/common/python-m2crypto deleted file mode 100644 index 1f206723c..000000000 --- a/config/rootfiles/common/python-m2crypto +++ /dev/null @@ -1 +0,0 @@ -#usr/lib/python2.7/site-packages/M2Crypto-0.21.1-py2.7-linux-i686.egg From d8799d92805d01a700afe3dad14c6dde439f42d7 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 20:11:01 +0100 Subject: [PATCH 17/28] Crypt-PasswdMD5: add new perl modul to use apache md5 passwords. --- config/rootfiles/common/Crypt-PasswdMD5 | 6 ++ lfs/Crypt-PasswdMD5 | 77 +++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 84 insertions(+) create mode 100644 config/rootfiles/common/Crypt-PasswdMD5 create mode 100644 lfs/Crypt-PasswdMD5 diff --git a/config/rootfiles/common/Crypt-PasswdMD5 b/config/rootfiles/common/Crypt-PasswdMD5 new file mode 100644 index 000000000..93df4cbed --- /dev/null +++ b/config/rootfiles/common/Crypt-PasswdMD5 @@ -0,0 +1,6 @@ +#usr/lib/perl5/site_perl/5.12.3/Crypt +usr/lib/perl5/site_perl/5.12.3/Crypt/PasswdMD5.pm +#usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/auto/Crypt +#usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/auto/Crypt/PasswdMD5 +#usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/auto/Crypt/PasswdMD5/.packlist +#usr/share/man/man3/Crypt::PasswdMD5.3 diff --git a/lfs/Crypt-PasswdMD5 b/lfs/Crypt-PasswdMD5 new file mode 100644 index 000000000..57c88fca7 --- /dev/null +++ b/lfs/Crypt-PasswdMD5 @@ -0,0 +1,77 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2012 IPFire Team # +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.3 + +THISAPP = Crypt-PasswdMD5-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 368205b1be8c0d4f807afe25d6fbd1ad + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && perl Makefile.PL + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 3dad5a310..dba36b460 100755 --- a/make.sh +++ b/make.sh @@ -571,6 +571,7 @@ buildipfire() { ipfiremake Text-Tabs+Wrap ipfiremake Locale-Country ipfiremake XML-Parser + ipfiremake Crypt-PasswdMD5 ipfiremake python-setuptools ipfiremake python-clientform ipfiremake python-mechanize From 18e7404874ed3442a38cd538a7184cfc67951db1 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 20:13:54 +0100 Subject: [PATCH 18/28] chpasswd.cgi: fixed for new MD5 password hashes. --- config/rootfiles/core/56/filelists/files | 1 + html/cgi-bin/chpasswd.cgi | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files index c82a52e08..26d35c5d4 100644 --- a/config/rootfiles/core/56/filelists/files +++ b/config/rootfiles/core/56/filelists/files @@ -1,6 +1,7 @@ etc/system-release etc/issue etc/rc.d/init.d/smartenabler +srv/web/ipfire/cgi-bin/chpasswd.cgi srv/web/ipfire/cgi-bin/hardwaregraphs.cgi srv/web/ipfire/cgi-bin/media.cgi usr/local/bin/hddshutdown diff --git a/html/cgi-bin/chpasswd.cgi b/html/cgi-bin/chpasswd.cgi index 6ce8787cf..ae9e6ec70 100644 --- a/html/cgi-bin/chpasswd.cgi +++ b/html/cgi-bin/chpasswd.cgi @@ -20,6 +20,7 @@ ############################################################################### use CGI qw(param); +use Crypt::PasswdMD5; $swroot = "/var/ipfire"; @@ -98,7 +99,10 @@ if ($cgiparams{'SUBMIT'} eq $tr{'advproxy chgwebpwd change password'}) $errormessage = $tr{'advproxy errmsg invalid user'}; goto ERROR; } - if (!(crypt($cgiparams{'OLD_PASSWORD'}, $cryptpwd) eq $cryptpwd)) + if ( + !(crypt($cgiparams{'OLD_PASSWORD'}, $cryptpwd) eq $cryptpwd) && + !(apache_md5_crypt($cgiparams{'OLD_PASSWORD'}, $cryptpwd) eq $cryptpwd) + ) { $errormessage = $tr{'advproxy errmsg password incorrect'}; goto ERROR; From 93474644055b272ec614cbc27b5bf7eb9ab3c379 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 20:19:25 +0100 Subject: [PATCH 19/28] core56: add Crypt-PasswdMD5 to updater. --- config/rootfiles/core/56/filelists/Crypt-PasswdMD5 | 1 + 1 file changed, 1 insertion(+) create mode 120000 config/rootfiles/core/56/filelists/Crypt-PasswdMD5 diff --git a/config/rootfiles/core/56/filelists/Crypt-PasswdMD5 b/config/rootfiles/core/56/filelists/Crypt-PasswdMD5 new file mode 120000 index 000000000..9a766e102 --- /dev/null +++ b/config/rootfiles/core/56/filelists/Crypt-PasswdMD5 @@ -0,0 +1 @@ +../../../common/Crypt-PasswdMD5 \ No newline at end of file From 4de55e0b3d1cedf25f9ea2b00e17d054115bf8fa Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 20:20:57 +0100 Subject: [PATCH 20/28] initskripts: add disc sync before unmounting filesystems. --- config/rootfiles/core/56/filelists/files | 1 + src/initscripts/init.d/mountfs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files index 26d35c5d4..65ae58d86 100644 --- a/config/rootfiles/core/56/filelists/files +++ b/config/rootfiles/core/56/filelists/files @@ -1,5 +1,6 @@ etc/system-release etc/issue +etc/rc.d/init.d/mountfs etc/rc.d/init.d/smartenabler srv/web/ipfire/cgi-bin/chpasswd.cgi srv/web/ipfire/cgi-bin/hardwaregraphs.cgi diff --git a/src/initscripts/init.d/mountfs b/src/initscripts/init.d/mountfs index 43ef02dc8..01ecafde8 100644 --- a/src/initscripts/init.d/mountfs +++ b/src/initscripts/init.d/mountfs @@ -40,6 +40,10 @@ case "${1}" in ;; stop) + boot_mesg "Syncing discs..." + sync && sync + evaluate_retval + boot_mesg "Unmounting all other currently mounted file systems..." umount -a -d -r &>/dev/null evaluate_retval From 9f212a96075bd0c3cc0b55c57ea8c2427ef6847c Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 20:24:09 +0100 Subject: [PATCH 21/28] core56: add openvpnctrl to updater. --- config/rootfiles/core/56/filelists/files | 1 + 1 file changed, 1 insertion(+) diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files index 65ae58d86..58c19601e 100644 --- a/config/rootfiles/core/56/filelists/files +++ b/config/rootfiles/core/56/filelists/files @@ -7,3 +7,4 @@ srv/web/ipfire/cgi-bin/hardwaregraphs.cgi srv/web/ipfire/cgi-bin/media.cgi usr/local/bin/hddshutdown usr/local/bin/makegraphs +usr/local/bin/openvpnctrl From 55bec7f58fa5b38a8ce37d3667730c80e85f2577 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 21 Jan 2012 20:26:26 +0100 Subject: [PATCH 22/28] core56: stop/start sshd and apache while updateing. --- config/rootfiles/core/56/update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/56/update.sh b/config/rootfiles/core/56/update.sh index cde93e1f4..2655a40a3 100644 --- a/config/rootfiles/core/56/update.sh +++ b/config/rootfiles/core/56/update.sh @@ -34,6 +34,8 @@ done # #Stop services +/etc/init.d/sshd stop +/etc/init.d/apache stop # #Extract files @@ -46,7 +48,8 @@ sed -i -e "s|38400|115200|g" /etc/inittab # #Start services - +/etc/init.d/apache start +/etc/init.d/sshd start # #Update Language cache From 76b8277500d32f633dd9d044d4593aa8a4d17013 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 22 Jan 2012 10:57:35 +0100 Subject: [PATCH 23/28] flash-images: increase size of root partition. Minimal media-size is now 2GB. --- lfs/flash-images | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lfs/flash-images b/lfs/flash-images index 0b07704b1..4c9982222 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -44,15 +44,15 @@ md5 : ############################################################################### # Installation Details ############################################################################### -IMGinst := /install/images/$(SNAME)-$(VERSION).1gb-ext2.$(MACHINE)-full-core$(CORE).img -IMGinsts := /install/images/$(SNAME)-$(VERSION).1gb-ext2-scon.$(MACHINE)-full-core$(CORE).img +IMGinst := /install/images/$(SNAME)-$(VERSION).2gb-ext2.$(MACHINE)-full-core$(CORE).img +IMGinsts := /install/images/$(SNAME)-$(VERSION).2gb-ext2-scon.$(MACHINE)-full-core$(CORE).img MNThdd := /install/harddisk IMGpart := /install/images/part_area IMGboot := /install/images/bootfs # don't change SIZEboot this without checking Image size SIZEboot := 20 IMGroot := /install/images/rootfs -SIZEroot := 500 +SIZEroot := 1400 IMGvar := /install/images/varfs SIZEvar := 430 From e247eb7cec0c628fb1d0a07e9cec3ced925b53d9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 23 Jan 2012 22:09:31 +0100 Subject: [PATCH 24/28] Allow : character in configuration files. According to bug #10006, it is needed in some DSL credentials. As : is not a special character in shell code (at least if {} is not allowed either) we can safely use it. --- config/rootfiles/core/56/filelists/files | 1 + src/scripts/readhash | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files index 58c19601e..7b1d4c0e8 100644 --- a/config/rootfiles/core/56/filelists/files +++ b/config/rootfiles/core/56/filelists/files @@ -8,3 +8,4 @@ srv/web/ipfire/cgi-bin/media.cgi usr/local/bin/hddshutdown usr/local/bin/makegraphs usr/local/bin/openvpnctrl +usr/local/bin/readhash diff --git a/src/scripts/readhash b/src/scripts/readhash index 63a3e0f88..8c187d51d 100644 --- a/src/scripts/readhash +++ b/src/scripts/readhash @@ -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 From b4c77ffb891f956f2b3c017bd55090a57e3b9862 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 23 Jan 2012 22:32:32 +0100 Subject: [PATCH 25/28] Reload static routes after a connecting to the internet. BUg 10007. Some users claimed, that not all static routes are set up correctly at boot time. --- src/initscripts/init.d/networking/red.down/10-static-routes | 4 ++++ src/initscripts/init.d/networking/red.up/10-static-routes | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 src/initscripts/init.d/networking/red.down/10-static-routes create mode 100644 src/initscripts/init.d/networking/red.up/10-static-routes diff --git a/src/initscripts/init.d/networking/red.down/10-static-routes b/src/initscripts/init.d/networking/red.down/10-static-routes new file mode 100644 index 000000000..f8f00a7d1 --- /dev/null +++ b/src/initscripts/init.d/networking/red.down/10-static-routes @@ -0,0 +1,4 @@ +#!/bin/bash + +# Update the static routes. +exec /etc/rc.d/init.d/static-routes start diff --git a/src/initscripts/init.d/networking/red.up/10-static-routes b/src/initscripts/init.d/networking/red.up/10-static-routes new file mode 100644 index 000000000..f8f00a7d1 --- /dev/null +++ b/src/initscripts/init.d/networking/red.up/10-static-routes @@ -0,0 +1,4 @@ +#!/bin/bash + +# Update the static routes. +exec /etc/rc.d/init.d/static-routes start From edc2be7080a64a27bd077b91b5eeec912e8baf2e Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 24 Jan 2012 18:17:14 +0100 Subject: [PATCH 26/28] flash-images: activate autoresize also on arm. --- lfs/flash-images | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lfs/flash-images b/lfs/flash-images index 4c9982222..daf3ec1cc 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -111,15 +111,15 @@ ifneq "$(MACHINE_TYPE)" "arm" sed -i -e "s|ROOT|UUID=$$(blkid -sUUID $(IMGroot) | cut -d'"' -f2)|g" $(MNThdd)/boot/grub/grub.conf ln -s grub.conf $(MNThdd)/boot/grub/menu.lst + # Copy grub files manually + cp -f $(MNThdd)/usr/share/grub/i386-pc/* $(MNThdd)/boot/grub/ +endif + # Setup symlink for partresize at first boot... ln -sf ../init.d/partresize $(MNThdd)/etc/rc.d/rcsysinit.d/S25partresize # Setup symlink for fsresize at second boot... ln -sf ../init.d/fsresize $(MNThdd)/etc/rc.d/rcsysinit.d/S26fsresize - # Copy grub files manually - cp -f $(MNThdd)/usr/share/grub/i386-pc/* $(MNThdd)/boot/grub/ -endif - # Unmount umount $(MNThdd)/proc umount $(MNThdd)/dev From 834ca786da89d5e61ec881d4f065a9c5ef92d287 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 26 Jan 2012 17:39:00 +0100 Subject: [PATCH 27/28] initscripts: rootfile update. --- config/rootfiles/common/armv5tel/initscripts | 3 +++ config/rootfiles/common/i586/initscripts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/config/rootfiles/common/armv5tel/initscripts b/config/rootfiles/common/armv5tel/initscripts index a7f0fed35..eaa6352d7 100644 --- a/config/rootfiles/common/armv5tel/initscripts +++ b/config/rootfiles/common/armv5tel/initscripts @@ -220,3 +220,6 @@ etc/sysconfig/modules etc/sysconfig/rc etc/sysconfig/rc.local etc/init.d +etc/rc.d/init.d/networking/red.down/10-static-routes +etc/rc.d/init.d/networking/red.up/10-static-routes +#etc/rc.d/init.d/transmission diff --git a/config/rootfiles/common/i586/initscripts b/config/rootfiles/common/i586/initscripts index 91e33081a..882628afd 100644 --- a/config/rootfiles/common/i586/initscripts +++ b/config/rootfiles/common/i586/initscripts @@ -223,3 +223,5 @@ etc/sysconfig/modules etc/sysconfig/rc etc/sysconfig/rc.local etc/init.d +etc/rc.d/init.d/networking/red.down/10-static-routes +etc/rc.d/init.d/networking/red.up/10-static-routes From c0ec89791d264825da02d18003443be3d18506b5 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 26 Jan 2012 17:43:59 +0100 Subject: [PATCH 28/28] finish core56. --- make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.sh b/make.sh index dba36b460..6e576e0dd 100755 --- a/make.sh +++ b/make.sh @@ -26,7 +26,7 @@ NAME="IPFire" # Software name SNAME="ipfire" # Short name VERSION="2.11" # Version number CORE="56" # Core Level (Filename) -PAKFIRE_CORE="55" # Core Level (PAKFIRE) +PAKFIRE_CORE="56" # 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