mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 10:22:59 +02:00
Added mdadm packages.
This commit is contained in:
@@ -195,3 +195,4 @@ etc/rc.d/rc6.d/K85tmpfs
|
||||
#etc/rc.d/rc3.d/S99miau
|
||||
#etc/rc.d/rc6.d/K01miau
|
||||
#etc/rc.d/init.d/netsnmpd
|
||||
etc/rc.d/init.d/mdadm
|
||||
9
config/rootfiles/packages/mdadm
Normal file
9
config/rootfiles/packages/mdadm
Normal file
@@ -0,0 +1,9 @@
|
||||
lib/udev/rules.d
|
||||
lib/udev/rules.d/64-md-raid.rules
|
||||
sbin/mdadm
|
||||
sbin/mdmon
|
||||
#usr/share/man/man4/md.4
|
||||
#usr/share/man/man5/mdadm.conf.5
|
||||
#usr/share/man/man8/mdadm.8
|
||||
#usr/share/man/man8/mdmon.8
|
||||
etc/rc.d/init.d/mdadm
|
||||
@@ -75,7 +75,7 @@
|
||||
* compat-wireless-2.6.32.2-kmod-2.6.27.42-ipfire-xen
|
||||
* coreutils-5.96
|
||||
* cpio-2.6
|
||||
* cpufrequtils-005
|
||||
* cpufrequtils-007
|
||||
* cups-1.4.2
|
||||
* curl-7.19.5
|
||||
* cyrus-imapd-2.2.12
|
||||
@@ -135,7 +135,7 @@
|
||||
* gzip-1.3.5
|
||||
* hddtemp-0.3-beta14
|
||||
* hdparm-8.9
|
||||
* hostapd-0.6.9
|
||||
* hostapd-0.7.1
|
||||
* hplip-2.7.10
|
||||
* hso-1.9-kmod-2.6.27.42-ipfire
|
||||
* hso-1.9-kmod-2.6.27.42-ipfire-xen
|
||||
@@ -200,7 +200,7 @@
|
||||
* linux-2.6.27.42-ipfire-xen
|
||||
* linux-atm-2.4.1
|
||||
* linux-libc-headers-2.6.12.0
|
||||
* lm_sensors-3.0.3
|
||||
* lm_sensors-3.1.2
|
||||
* logrotate-3.7.1
|
||||
* logwatch-7.3.6
|
||||
* lsof-4.78
|
||||
@@ -210,13 +210,14 @@
|
||||
* mISDN_20090906-kmod-2.6.27.42-ipfire
|
||||
* mISDN_20090906-kmod-2.6.27.42-ipfire-xen
|
||||
* mISDNuser_20090906
|
||||
* madwifi-hal-0.10.5.6-r4031-20090529-kmod-2.6.27.42-ipfire
|
||||
* madwifi-hal-0.10.5.6-r4031-20090529-kmod-2.6.27.42-ipfire-xen
|
||||
* madwifi-hal-0.10.5.6-r4119-20100201-kmod-2.6.27.42-ipfire
|
||||
* madwifi-hal-0.10.5.6-r4119-20100201-kmod-2.6.27.42-ipfire-xen
|
||||
* make-3.81
|
||||
* man-db-2.4.3
|
||||
* man-pages-2.34
|
||||
* mbr-1.1.8
|
||||
* mc-4.7.0
|
||||
* mdadm-3.1.1
|
||||
* mechanize-0.1.8
|
||||
* mediatomb-svn2020
|
||||
* memtest86+-4.00
|
||||
@@ -280,7 +281,7 @@
|
||||
* pptp-1.7.2
|
||||
* procps-3.2.6
|
||||
* psmisc-22.2
|
||||
* qemu-0.11.0
|
||||
* qemu-0.12.2
|
||||
* r8101-kmod-2.6.27.42-ipfire
|
||||
* r8101-kmod-2.6.27.42-ipfire-xen
|
||||
* r8168-8.014.00-kmod-2.6.27.42-ipfire
|
||||
|
||||
1
make.sh
1
make.sh
@@ -643,6 +643,7 @@ buildipfire() {
|
||||
ipfiremake lcr
|
||||
ipfiremake usb_modeswitch
|
||||
ipfiremake zerofree
|
||||
ipfiremake mdadm
|
||||
echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild
|
||||
cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild
|
||||
echo >> $BASEDIR/build/var/ipfire/firebuild
|
||||
|
||||
60
src/initscripts/init.d/mdadm
Normal file
60
src/initscripts/init.d/mdadm
Normal file
@@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin $rc_base/init.d/mdadmraid
|
||||
#
|
||||
# Description : This script controls software Raid
|
||||
#
|
||||
# Authors : Dirk Hoefle <dhoefle@gmx.net>
|
||||
#
|
||||
# Version : 01.00
|
||||
#
|
||||
# Notes :
|
||||
#
|
||||
########################################################################
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. ${rc_functions}
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
|
||||
if [ -f /etc/mdadm.conf ]
|
||||
then
|
||||
boot_mesg "Starting Raid devices..."
|
||||
|
||||
modprobe md
|
||||
modprobe raid0
|
||||
modprobe raid1
|
||||
modprobe raid5
|
||||
|
||||
sleep 1
|
||||
|
||||
mdadm --assemble --scan
|
||||
else
|
||||
boot_mesg "Skipping raid devices, no config found..."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping Raid devices..."
|
||||
mdadm --stop --scan
|
||||
;;
|
||||
|
||||
restart)
|
||||
${0} stop
|
||||
sleep 1
|
||||
${0} start
|
||||
;;
|
||||
|
||||
status)
|
||||
cat /proc/mdstat
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/mdadmraid
|
||||
Reference in New Issue
Block a user