diff --git a/config/rootfiles/common/initscripts b/config/rootfiles/common/initscripts index 73a06a4ba..58bbf8c6a 100644 --- a/config/rootfiles/common/initscripts +++ b/config/rootfiles/common/initscripts @@ -13,6 +13,7 @@ etc/rc.d/init.d/beep #etc/rc.d/init.d/bluetooth etc/rc.d/init.d/checkfs etc/rc.d/init.d/checkfstab +etc/rc.d/init.d/waitdrives #etc/rc.d/init.d/clamav etc/rc.d/init.d/cleanfs #etc/rc.d/init.d/client175 @@ -202,6 +203,7 @@ etc/rc.d/rcsysinit.d/S00mountkernfs etc/rc.d/rcsysinit.d/S05modules etc/rc.d/rcsysinit.d/S10udev etc/rc.d/rcsysinit.d/S19checkfstab +etc/rc.d/rcsysinit.d/S19waitdrives etc/rc.d/rcsysinit.d/S20swap etc/rc.d/rcsysinit.d/S30checkfs etc/rc.d/rcsysinit.d/S40mountfs diff --git a/config/rootfiles/common/ntfs-3g b/config/rootfiles/common/ntfs-3g index 2762b8fd7..186e12be2 100644 --- a/config/rootfiles/common/ntfs-3g +++ b/config/rootfiles/common/ntfs-3g @@ -9,6 +9,7 @@ usr/bin/ntfs-3g.probe usr/bin/ntfs-3g.secaudit usr/bin/ntfs-3g.usermap #usr/include/ntfs-3g +#usr/include/ntfs-3g/acls.h #usr/include/ntfs-3g/attrib.h #usr/include/ntfs-3g/attrlist.h #usr/include/ntfs-3g/bitmap.h @@ -41,7 +42,6 @@ usr/bin/ntfs-3g.usermap #usr/include/ntfs-3g/support.h #usr/include/ntfs-3g/types.h #usr/include/ntfs-3g/unistr.h -#usr/include/ntfs-3g/version.h #usr/include/ntfs-3g/volume.h #usr/include/ntfs-3g/xattrs.h #usr/lib/libntfs-3g.a diff --git a/config/rootfiles/core/49/filelists/files b/config/rootfiles/core/49/filelists/files index 97a2c0029..8fc42ba29 100644 --- a/config/rootfiles/core/49/filelists/files +++ b/config/rootfiles/core/49/filelists/files @@ -1,6 +1,9 @@ etc/system-release -etc/init.d/squid +etc/rc.d/init.d/squid +etc/rc.d/init.d/waitdrives +etc/rc.d/rcsysinit.d/S19waitdrives var/ipfire/backup/bin/backup.pl +srv/web/ipfire/cgi-bin/extrahd.cgi srv/web/ipfire/cgi-bin/ids.cgi srv/web/ipfire/cgi-bin/ovpnmain.cgi srv/web/ipfire/cgi-bin/pppsetup.cgi @@ -9,3 +12,4 @@ var/ipfire/langs/de.pl var/ipfire/langs/en.pl var/ipfire/langs/es.pl var/ipfire/langs/fr.pl +usr/local/bin/scanhd diff --git a/config/rootfiles/core/49/filelists/icons b/config/rootfiles/core/49/filelists/icons new file mode 100644 index 000000000..52b22e005 --- /dev/null +++ b/config/rootfiles/core/49/filelists/icons @@ -0,0 +1,13 @@ +srv/web/ipfire/html/images/delete.gif +srv/web/ipfire/html/images/document-save.png +srv/web/ipfire/html/images/edit.gif +srv/web/ipfire/html/images/floppy.gif +srv/web/ipfire/html/images/forward.gif +srv/web/ipfire/html/images/info.gif +srv/web/ipfire/html/images/list-add.png +srv/web/ipfire/html/images/list-remove.png +srv/web/ipfire/html/images/package-x-generic.png +srv/web/ipfire/html/images/reload.gif +srv/web/ipfire/html/images/stock_ok.png +srv/web/ipfire/html/images/stock_stop.png +srv/web/ipfire/html/images/user-trash.png diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi index 2ea417886..fa12dbed4 100644 --- a/html/cgi-bin/extrahd.cgi +++ b/html/cgi-bin/extrahd.cgi @@ -202,7 +202,7 @@ END foreach $partitionentry (sort @partitions) { @partitionline = split( /\;/, $partitionentry ); - if (( "$partitionline[0]" =~ /^$scanline[0]/ ) && ! ( "$partitionline[0]" eq "$scanline[0]" )) { + if (( "$partitionline[0]" =~ /^$scanline[0]/ ) && !( "$partitionline[2]" == "" )) { $size = int($partitionline[1] / 1024); print < diff --git a/html/html/images/delete.gif b/html/html/images/delete.gif index 855a9b3c2..edae2a7f7 100644 Binary files a/html/html/images/delete.gif and b/html/html/images/delete.gif differ diff --git a/html/html/images/document-save.png b/html/html/images/document-save.png index 22ff49571..65a42b2e6 100644 Binary files a/html/html/images/document-save.png and b/html/html/images/document-save.png differ diff --git a/html/html/images/edit.gif b/html/html/images/edit.gif index c749f4658..851d29e64 100644 Binary files a/html/html/images/edit.gif and b/html/html/images/edit.gif differ diff --git a/html/html/images/floppy.gif b/html/html/images/floppy.gif index 7db2f32d1..d0562220d 100644 Binary files a/html/html/images/floppy.gif and b/html/html/images/floppy.gif differ diff --git a/html/html/images/forward.gif b/html/html/images/forward.gif index 33d18b571..fdda6afa9 100644 Binary files a/html/html/images/forward.gif and b/html/html/images/forward.gif differ diff --git a/html/html/images/info.gif b/html/html/images/info.gif index 94671ef2f..31e680c6c 100644 Binary files a/html/html/images/info.gif and b/html/html/images/info.gif differ diff --git a/html/html/images/list-add.png b/html/html/images/list-add.png index 1aa7f095c..012cb2eb4 100644 Binary files a/html/html/images/list-add.png and b/html/html/images/list-add.png differ diff --git a/html/html/images/list-remove.png b/html/html/images/list-remove.png index 00b654e8c..2d0c78083 100644 Binary files a/html/html/images/list-remove.png and b/html/html/images/list-remove.png differ diff --git a/html/html/images/package-x-generic.png b/html/html/images/package-x-generic.png index 901542615..5febf95dc 100644 Binary files a/html/html/images/package-x-generic.png and b/html/html/images/package-x-generic.png differ diff --git a/html/html/images/reload.gif b/html/html/images/reload.gif index a456e7e73..1b04197ee 100644 Binary files a/html/html/images/reload.gif and b/html/html/images/reload.gif differ diff --git a/html/html/images/stock_ok.png b/html/html/images/stock_ok.png index d92d88d8a..7a4acb5d1 100644 Binary files a/html/html/images/stock_ok.png and b/html/html/images/stock_ok.png differ diff --git a/html/html/images/stock_stop.png b/html/html/images/stock_stop.png index 89c212493..8305ee8a4 100644 Binary files a/html/html/images/stock_stop.png and b/html/html/images/stock_stop.png differ diff --git a/html/html/images/user-trash.png b/html/html/images/user-trash.png index 0e0953c73..2a1c7b1c3 100644 Binary files a/html/html/images/user-trash.png and b/html/html/images/user-trash.png differ diff --git a/lfs/initscripts b/lfs/initscripts index c4da41389..c32b1693f 100644 --- a/lfs/initscripts +++ b/lfs/initscripts @@ -163,6 +163,7 @@ $(TARGET) : ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules ln -sf ../init.d/udev /etc/rc.d/rcsysinit.d/S10udev ln -sf ../init.d/checkfstab /etc/rc.d/rcsysinit.d/S19checkfstab + ln -sf ../init.d/waitdrives /etc/rc.d/rcsysinit.d/S19waitdrives ln -sf ../init.d/swap /etc/rc.d/rcsysinit.d/S20swap ln -sf ../init.d/checkfs /etc/rc.d/rcsysinit.d/S30checkfs ln -sf ../init.d/mountfs /etc/rc.d/rcsysinit.d/S40mountfs diff --git a/src/initscripts/init.d/waitdrives b/src/initscripts/init.d/waitdrives new file mode 100644 index 000000000..93ae1ed70 --- /dev/null +++ b/src/initscripts/init.d/waitdrives @@ -0,0 +1,56 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/waitdrives +# +# Description : Wait for drives before fscheck/mount +# +# Authors : Arne Fitzenreiter - arne_f@ipfire.org +# +# Version : 00.00 +# +# Notes : +# +######################################################################## + +. /etc/sysconfig/rc +. ${rc_functions} + +check_drives () { + drives_ready="1"; + for drive in $drives; do + if [ `blkid | grep $drive | wc -l` == 0 ]; then + drives_ready="0"; + fi + done +} + +case "${1}" in + start) + if [ -e /sbin/mdadm ]; then + boot_mesg "Assemble mdadm managed raid-drives ..." + mdadm --assemble --scan + fi + + drives=`grep "^UUID=" /etc/fstab | cut -f1 | cut -d" " -f1 | cut -d"=" -f2`; + + check_drives; + if [ "$drives_ready" == "0" ]; then + boot_mesg -n "Wait for devices used in fstab " + for (( i=1; i<30; i++)) do + check_drives; + if [ "$drives_ready" == "1" ]; then + break; + fi + boot_mesg -n "." + sleep 1 + done + fi + exit 0; + ;; + *) + echo "Usage: ${0} {start}" + exit 1 + ;; +esac + +# End $rc_base/init.d/waitdrives diff --git a/src/scripts/scanhd b/src/scripts/scanhd index 2d76ba625..9d47e3d63 100644 --- a/src/scripts/scanhd +++ b/src/scripts/scanhd @@ -2,7 +2,10 @@ case "$1" in ide) - /sbin/kudzu -qps -c HD | egrep "desc|device:" | awk -F': ' '{print $2}' | sed -e '/"$/a\\' -e "s/$/\;/g" | tr "\n" "XX" | sed -e "s/XX/\n/g" -e "s/\;X/\;/g" > /var/ipfire/extrahd/scan + /sbin/kudzu -qps -c HD | egrep "desc|device:" | awk -F': ' '{print $2}' | sed -e '/"$/a\\' -e "s/$/\;/g" | tr "\n" "XX" | sed -e "s/XX/\n/g" -e "s/\;X/\;/g" | grep '^"' -v > /var/ipfire/extrahd/scan + if [ -e /dev/md ]; then + echo 'md;"MDADM software-raid";' >> /var/ipfire/extrahd/scan + fi ;; partitions) cat /proc/partitions | awk '{print $4 " " $3 }' | grep -v name | grep -v "^[:space:]*$" | \