From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [IPFire-SCM] [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 55bec7f58fa5b38a8ce37d3667730c80e85f2577
Date: Sat, 21 Jan 2012 20:27:53 +0100 [thread overview]
Message-ID: <20120121192754.C1C7A20DA2@argus.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 47832 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, master has been updated
via 55bec7f58fa5b38a8ce37d3667730c80e85f2577 (commit)
via 9f212a96075bd0c3cc0b55c57ea8c2427ef6847c (commit)
via 4de55e0b3d1cedf25f9ea2b00e17d054115bf8fa (commit)
via 93474644055b272ec614cbc27b5bf7eb9ab3c379 (commit)
via 18e7404874ed3442a38cd538a7184cfc67951db1 (commit)
via d8799d92805d01a700afe3dad14c6dde439f42d7 (commit)
via 120cedf2852b71cd06cdacda10a18a8e7f2eeb8a (commit)
via 18252bf79499ec809dc4f4eeba6fecffd50bd3e6 (commit)
via 0b236f60676f47cf1c255d0d591824f2100aed7c (commit)
via fbb2ebd68446a51c4d6d543210a1f53b7fcd73dc (commit)
via a6d0d790ebe2c72aa85b83961ab1915fec14ab20 (commit)
via 6333b4e7257cfeb79a381de1f62bdc9a20070eaf (commit)
via 7d87d796c7823eb66843dbe0a99f795be48f5ef6 (commit)
via e18e19d2911121c28f669cdd229e2b2d12298c6f (commit)
via a6b7619bab60277309da1c2ba1a77708798caebb (commit)
via 269e21c66206f4befdde25ceaec820467ff1cbe3 (commit)
via d520da17045d2b037ea79b83d71b513e3f48840d (commit)
via 99b01b84851bcdba605e9d73f727b62b9edde7a7 (commit)
via 1bafefd5fb6ad91c5d2aeed3122d45e98139f5a5 (commit)
via b8db3d70ed8e535fda15b60330bcce557e4f07bb (commit)
via dc29e3d019407db10bffe64ac0accd17c8dd42d8 (commit)
via 5db5319e404da77b8ff488f8955da38f61b74c18 (commit)
via d49c2573b1b880249b16b6f80002f7b8dd565780 (commit)
via f4afa6ddf79e0c20bb4e844aade1d1d8eeb9896a (commit)
via 683cc8e470f73e3a964191af3e66b90c80495a25 (commit)
via 977fc44e2064e4e4cec598c0347c2fb1999ea3dc (commit)
via f530902b81da9c6d275d7ed2d40341371e1a389e (commit)
via 6f5ef200b352a96e9ed7b45a1e64119067c0c98f (commit)
via c01c550df8a24dc1591441a6e9c005d2c9261b94 (commit)
via c6f13fa77c23a02d649ed1d56c7a366c3a7a2caa (commit)
via 72c10e85d324d8d26d3da59c240e55078a281379 (commit)
from 9ad2f534d91ca02ad0bbaab6751eb8bd395ece0f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 55bec7f58fa5b38a8ce37d3667730c80e85f2577
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 20:26:26 2012 +0100
core56: stop/start sshd and apache while updateing.
commit 9f212a96075bd0c3cc0b55c57ea8c2427ef6847c
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 20:24:09 2012 +0100
core56: add openvpnctrl to updater.
commit 4de55e0b3d1cedf25f9ea2b00e17d054115bf8fa
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 20:20:57 2012 +0100
initskripts: add disc sync before unmounting filesystems.
commit 93474644055b272ec614cbc27b5bf7eb9ab3c379
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 20:19:25 2012 +0100
core56: add Crypt-PasswdMD5 to updater.
commit 18e7404874ed3442a38cd538a7184cfc67951db1
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 20:13:54 2012 +0100
chpasswd.cgi: fixed for new MD5 password hashes.
commit d8799d92805d01a700afe3dad14c6dde439f42d7
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 20:11:01 2012 +0100
Crypt-PasswdMD5: add new perl modul to use apache md5 passwords.
commit 120cedf2852b71cd06cdacda10a18a8e7f2eeb8a
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 17:17:35 2012 +0100
python-m2crypto: rootfile update.
commit 18252bf79499ec809dc4f4eeba6fecffd50bd3e6
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 17:10:05 2012 +0100
usb-modeswitch: update to 1.2.2 and data 20120120.
commit 0b236f60676f47cf1c255d0d591824f2100aed7c
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Jan 21 14:09:34 2012 +0100
rsync: update to 3.0.9.
commit fbb2ebd68446a51c4d6d543210a1f53b7fcd73dc
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Fri Jan 20 21:06:45 2012 +0100
flash-image: improve mount/dismount at partition resize.
fix missing parameters at mount.
remount / ro before reboot to leave a clean rootfs.
commit a6d0d790ebe2c72aa85b83961ab1915fec14ab20
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Fri Jan 20 08:02:31 2012 +0100
flash-image: add automatic resizing /var partition at first boot.
commit 6333b4e7257cfeb79a381de1f62bdc9a20070eaf
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 19 21:39:58 2012 +0100
openssl: security update to 0.9.8t.
prevent DTLS DoS attak (CVE-2012-0050)
commit 7d87d796c7823eb66843dbe0a99f795be48f5ef6
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 19 19:28:21 2012 +0100
Revert "kernel: Enable support for UFS."
This reverts commit 6f5ef200b352a96e9ed7b45a1e64119067c0c98f.
This has to wait until next kernel release.
commit e18e19d2911121c28f669cdd229e2b2d12298c6f
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 19 19:27:19 2012 +0100
Revert "Support BSD partition tables."
This reverts commit 977fc44e2064e4e4cec598c0347c2fb1999ea3dc.
This has to wait until next kernel release.
Than we should revert the revert.
commit a6b7619bab60277309da1c2ba1a77708798caebb
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Tue Jan 17 20:29:36 2012 +0100
serial console: set baudrate to 115200.
commit 269e21c66206f4befdde25ceaec820467ff1cbe3
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Mon Jan 16 22:22:17 2012 +0100
Fix block device detection for graphs and other scripts.
commit d520da17045d2b037ea79b83d71b513e3f48840d
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sun Jan 15 10:22:25 2012 +0100
start core56.
commit 99b01b84851bcdba605e9d73f727b62b9edde7a7
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Sat Jan 7 22:21:08 2012 +0100
openvpn: Fix starting/stopping errors in the control binary.
net2net connection were not started when roadwarrior connections
were existant.
commit 1bafefd5fb6ad91c5d2aeed3122d45e98139f5a5
Merge: 5db5319 b8db3d7
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 5 15:00:42 2012 +0100
Merge branch 'next' of git.ipfire.org:/pub/git/ipfire-2.x into next
commit b8db3d70ed8e535fda15b60330bcce557e4f07bb
Merge: dc29e3d d49c257
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 5 15:00:04 2012 +0100
Merge branch 'next' of ssh://arne_f(a)git.ipfire.org/pub/git/ipfire-2.x into next
commit dc29e3d019407db10bffe64ac0accd17c8dd42d8
Merge: f4afa6d 9ad2f53
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 5 14:59:54 2012 +0100
Merge branch 'master' into next
commit 5db5319e404da77b8ff488f8955da38f61b74c18
Merge: 72c10e8 d49c257
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 5 14:59:25 2012 +0100
Merge branch 'next' of git.ipfire.org:/pub/git/ipfire-2.x into next
commit d49c2573b1b880249b16b6f80002f7b8dd565780
Merge: f4afa6d a413026
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Tue Jan 3 21:24:25 2012 +0100
Merge branch 'master' into next
commit f4afa6ddf79e0c20bb4e844aade1d1d8eeb9896a
Merge: 683cc8e 0d738d2
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Sat Dec 31 10:33:39 2011 +0100
Merge branch 'master' into next
commit 683cc8e470f73e3a964191af3e66b90c80495a25
Author: Robert Möker <robert.moeker(a)ipfire.org>
Date: Thu Dec 29 19:35:48 2011 +0100
nagios_nrpe: Add --enable-command-args.
commit 977fc44e2064e4e4cec598c0347c2fb1999ea3dc
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Dec 29 18:59:12 2011 +0100
Support BSD partition tables.
commit f530902b81da9c6d275d7ed2d40341371e1a389e
Merge: 6f5ef20 c01c550
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Dec 29 16:30:21 2011 +0100
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
commit 6f5ef200b352a96e9ed7b45a1e64119067c0c98f
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Dec 29 16:29:20 2011 +0100
kernel: Enable support for UFS.
Unix File System as it is used in FreeBSD 5.x.
No write support enabled.
commit c01c550df8a24dc1591441a6e9c005d2c9261b94
Merge: c6f13fa da7ab3c
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Dec 29 14:03:42 2011 +0100
Merge branch 'master' into next
commit c6f13fa77c23a02d649ed1d56c7a366c3a7a2caa
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Thu Dec 29 13:44:09 2011 +0100
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.
commit 72c10e85d324d8d26d3da59c240e55078a281379
Merge: 99f96fa f13d4e0
Author: root <root(a)panda.(none)>
Date: Sun Dec 18 16:04:55 2011 +0100
Merge remote-tracking branch 'ms/fake-uname' into next
-----------------------------------------------------------------------
Summary of changes:
config/grub/grub.conf | 4 +-
config/rootfiles/common/Crypt-PasswdMD5 | 6 ++
config/rootfiles/common/armv5tel/initscripts | 2 +
config/rootfiles/common/armv5tel/python-m2crypto | 1 +
config/rootfiles/common/i586/initscripts | 2 +
config/rootfiles/common/i586/python-m2crypto | 1 +
config/rootfiles/common/python-m2crypto | 1 -
config/rootfiles/common/usb_modeswitch_data | 15 +++++
config/rootfiles/core/{53 => 56}/exclude | 0
config/rootfiles/core/56/filelists/Crypt-PasswdMD5 | 1 +
config/rootfiles/core/56/filelists/files | 10 +++
config/rootfiles/core/{55 => 56}/filelists/openssh | 0
config/rootfiles/core/{55 => 56}/filelists/openssl | 0
.../core/{53 => 56}/filelists/usb_modeswitch | 0
.../core/{53 => 56}/filelists/usb_modeswitch_data | 0
config/rootfiles/core/{52 => 56}/meta | 0
config/rootfiles/core/{55 => 56}/update.sh | 8 ++-
html/cgi-bin/chpasswd.cgi | 6 ++-
html/cgi-bin/hardwaregraphs.cgi | 4 +-
html/cgi-bin/media.cgi | 4 +-
lfs/{Locale-Country => Crypt-PasswdMD5} | 8 +-
lfs/flash-images | 19 ++++++-
lfs/nagios_nrpe | 15 +++-
lfs/openssl | 4 +-
lfs/rsync | 8 +-
lfs/usb_modeswitch | 6 +-
lfs/usb_modeswitch_data | 4 +-
make.sh | 3 +-
src/initscripts/init.d/fsresize | 47 ++++++++++++++
src/initscripts/init.d/mountfs | 4 +
src/initscripts/init.d/partresize | 48 ++++++++++++++
src/initscripts/init.d/smartenabler | 2 +-
src/misc-progs/openvpnctrl.c | 65 +++++++++++++++----
src/scripts/hddshutdown | 3 +-
src/scripts/makegraphs | 2 +-
35 files changed, 255 insertions(+), 48 deletions(-)
create mode 100644 config/rootfiles/common/Crypt-PasswdMD5
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
copy config/rootfiles/core/{53 => 56}/exclude (100%)
create mode 120000 config/rootfiles/core/56/filelists/Crypt-PasswdMD5
create mode 100644 config/rootfiles/core/56/filelists/files
copy config/rootfiles/core/{55 => 56}/filelists/openssh (100%)
copy config/rootfiles/core/{55 => 56}/filelists/openssl (100%)
copy config/rootfiles/core/{53 => 56}/filelists/usb_modeswitch (100%)
copy config/rootfiles/core/{53 => 56}/filelists/usb_modeswitch_data (100%)
copy config/rootfiles/core/{52 => 56}/meta (100%)
copy config/rootfiles/core/{55 => 56}/update.sh (95%)
copy lfs/{Locale-Country => Crypt-PasswdMD5} (94%)
create mode 100644 src/initscripts/init.d/fsresize
create mode 100644 src/initscripts/init.d/partresize
Difference in files:
diff --git a/config/grub/grub.conf b/config/grub/grub.conf
index d71e0c6..553b10d 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/common/Crypt-PasswdMD5 b/config/rootfiles/common/Crypt-PasswdMD5
new file mode 100644
index 0000000..93df4cb
--- /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/config/rootfiles/common/armv5tel/initscripts b/config/rootfiles/common/armv5tel/initscripts
index 22a7c13..a7f0fed 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/armv5tel/python-m2crypto b/config/rootfiles/common/armv5tel/python-m2crypto
new file mode 100644
index 0000000..6f51e3d
--- /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/initscripts b/config/rootfiles/common/i586/initscripts
index 65fa0cd..91e3308 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/config/rootfiles/common/i586/python-m2crypto b/config/rootfiles/common/i586/python-m2crypto
new file mode 100644
index 0000000..7317214
--- /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 1f20672..0000000
--- 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
diff --git a/config/rootfiles/common/usb_modeswitch_data b/config/rootfiles/common/usb_modeswitch_data
index 953f851..0ebcf62 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/exclude b/config/rootfiles/core/56/exclude
new file mode 100644
index 0000000..ca3adf5
--- /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/Crypt-PasswdMD5 b/config/rootfiles/core/56/filelists/Crypt-PasswdMD5
new file mode 120000
index 0000000..9a766e1
--- /dev/null
+++ b/config/rootfiles/core/56/filelists/Crypt-PasswdMD5
@@ -0,0 +1 @@
+../../../common/Crypt-PasswdMD5
\ No newline at end of file
diff --git a/config/rootfiles/core/56/filelists/files b/config/rootfiles/core/56/filelists/files
new file mode 100644
index 0000000..58c1960
--- /dev/null
+++ b/config/rootfiles/core/56/filelists/files
@@ -0,0 +1,10 @@
+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
+srv/web/ipfire/cgi-bin/media.cgi
+usr/local/bin/hddshutdown
+usr/local/bin/makegraphs
+usr/local/bin/openvpnctrl
diff --git a/config/rootfiles/core/56/filelists/openssh b/config/rootfiles/core/56/filelists/openssh
new file mode 120000
index 0000000..d8c77fd
--- /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 0000000..e011a92
--- /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/filelists/usb_modeswitch b/config/rootfiles/core/56/filelists/usb_modeswitch
new file mode 120000
index 0000000..acbab6f
--- /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 0000000..4cbce46
--- /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/config/rootfiles/core/56/meta b/config/rootfiles/core/56/meta
new file mode 100644
index 0000000..d547fa8
--- /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 0000000..2655a40
--- /dev/null
+++ b/config/rootfiles/core/56/update.sh
@@ -0,0 +1,82 @@
+#!/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 <info(a)ipfire.org>. #
+# #
+############################################################################
+#
+. /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
+/etc/init.d/sshd stop
+/etc/init.d/apache stop
+
+#
+#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
+/etc/init.d/apache start
+/etc/init.d/sshd start
+
+#
+#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/html/cgi-bin/chpasswd.cgi b/html/cgi-bin/chpasswd.cgi
index 6ce8787..ae9e6ec 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;
diff --git a/html/cgi-bin/hardwaregraphs.cgi b/html/cgi-bin/hardwaregraphs.cgi
index e32f07c..b0a5d3a 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 9fbb041..f67c178 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/lfs/Crypt-PasswdMD5 b/lfs/Crypt-PasswdMD5
new file mode 100644
index 0000000..57c88fc
--- /dev/null
+++ b/lfs/Crypt-PasswdMD5
@@ -0,0 +1,77 @@
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2007-2012 IPFire Team <info(a)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/>. #
+# #
+###############################################################################
+
+###############################################################################
+# 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/lfs/flash-images b/lfs/flash-images
index 7888423..0b07704 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/lfs/nagios_nrpe b/lfs/nagios_nrpe
index 34bc5a8..050c929 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,16 @@ $(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 \
+ --enable-command-args \
+ ac_cv_lib_wrap_main=no
+
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
diff --git a/lfs/openssl b/lfs/openssl
index de39d60..21b6c0e 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)
diff --git a/lfs/rsync b/lfs/rsync
index e151987..2e65268 100644
--- a/lfs/rsync
+++ b/lfs/rsync
@@ -1,7 +1,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2011 IPFire Team <info(a)ipfire.org> #
+# Copyright (C) 2007-2012 IPFire Team <info(a)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 #
@@ -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)
diff --git a/lfs/usb_modeswitch b/lfs/usb_modeswitch
index 1d6ac81..db9ca3a 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 <info(a)ipfire.org> #
+# Copyright (C) 2007-2012 IPFire Team <info(a)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 #
@@ -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 990c950..2b99bd0 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)
diff --git a/make.sh b/make.sh
index 1730275..dba36b4 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
@@ -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
diff --git a/src/initscripts/init.d/fsresize b/src/initscripts/init.d/fsresize
new file mode 100644
index 0000000..0afe779
--- /dev/null
+++ b/src/initscripts/init.d/fsresize
@@ -0,0 +1,47 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/fsresize
+#
+# Description : Resize the /var filesystem
+#
+# Authors : Arne Fitzenreiter - arne_f(a)ipfire.org
+#
+# Version : 1.00
+#
+# Notes :
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+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 ..."
+ # 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
+ sync
+
+ exit 0;
+ ;;
+ *)
+ echo "Usage: ${0} {start}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/26fsresize
diff --git a/src/initscripts/init.d/mountfs b/src/initscripts/init.d/mountfs
index 43ef02d..01ecafd 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
diff --git a/src/initscripts/init.d/partresize b/src/initscripts/init.d/partresize
new file mode 100644
index 0000000..8eddc46
--- /dev/null
+++ b/src/initscripts/init.d/partresize
@@ -0,0 +1,48 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/partresize
+#
+# Description : Resize the /var partition to the drivesize
+#
+# Authors : Arne Fitzenreiter - arne_f(a)ipfire.org
+#
+# Version : 1.00
+#
+# Notes :
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+case "${1}" in
+ start)
+
+ 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`;
+ 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 ..."
+ sync
+ mount -o remount,ro / > /dev/null
+ reboot -f
+
+ ;;
+ *)
+ echo "Usage: ${0} {start}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/partresize
+
diff --git a/src/initscripts/init.d/smartenabler b/src/initscripts/init.d/smartenabler
index 7344c2f..4df6936 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/misc-progs/openvpnctrl.c b/src/misc-progs/openvpnctrl.c
index 5207c24..e7b128a 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) {
diff --git a/src/scripts/hddshutdown b/src/scripts/hddshutdown
index dc49a17..146cc73 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 48444f5..7cdd2f9 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 = $_;
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2012-01-21 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120121192754.C1C7A20DA2@argus.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox