sdparm eingebaut.

badblocks in die ISO gepackt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@901 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-09-20 19:29:29 +00:00
parent 56b7a3e2c4
commit f9956330be
7 changed files with 92 additions and 9 deletions

View File

@@ -11,14 +11,14 @@ lib/libss.so.2
lib/libss.so.2.0
lib/libuuid.so.1
lib/libuuid.so.1.2
#sbin/badblocks
#sbin/blkid
#sbin/debugfs
#sbin/dumpe2fs
sbin/badblocks
sbin/blkid
sbin/debugfs
sbin/dumpe2fs
sbin/e2fsck
#sbin/e2image
#sbin/e2label
#sbin/findfs
sbin/e2image
sbin/e2label
sbin/findfs
sbin/fsck
sbin/fsck.ext2
sbin/fsck.ext3

View File

@@ -0,0 +1,2 @@
usr/bin/sdparm
#usr/man/man8/sdparm.8

View File

@@ -216,6 +216,7 @@
* rtorrent-0.7.6
* samba-3.0.25c
* screen-4.0.2
* sdparm-0.90
* sed-4.1.5
* setserial-2.17
* shadow-4.0.15

80
lfs/sdparm Normal file
View File

@@ -0,0 +1,80 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
# #
# 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 = 0.90
THISAPP = sdparm-$(VER)
DL_FILE = $(THISAPP).tgz
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 = 7bc85c3e2031493aaaa703cd1a4db0f8
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
md5 : $(subst %,%_MD5,$(objects))
dist:
@$(PAK)
###############################################################################
# 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) && ./configure --prefix=/usr
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -387,6 +387,7 @@ buildipfire() {
ipfiremake GD-TextUtil
ipfiremake gnupg
ipfiremake hdparm
ipfiremake sdparm
ipfiremake mtools
ipfiremake initscripts
ipfiremake whatmask

View File

@@ -2,7 +2,6 @@
. /opt/pakfire/lib/functions.sh
extract_files
chown nobody.nobody -Rv /var/ipfire/mpfire
ln -svf ../init.d/mpd /etc/rc.d/rc3.d/S65mpd
ln -svf ../init.d/mpd /etc/rc.d/rc0.d/K35mpd
ln -svf ../init.d/mpd /etc/rc.d/rc6.d/K35mpd

View File

@@ -33,7 +33,7 @@ chomp $newdiskstats;
system("/sbin/hdparm -y /dev/$_");
system("touch /tmp/hddshutdown-$_");
}
elsif ($diskstatus{$_} ne "0" || $status !=~/standby/){
else{
if ($debug){print "Device ".$_." is active.\n";}
if ( -e "/tmp/hddshutdown-$_" ) { system("unlink /tmp/hddshutdown-$_"); }
}