mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
ExtraHD! Die Erweiterung um Festplatten schnell einzubinden!
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@420 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
13
src/scripts/scanhd
Normal file
13
src/scripts/scanhd
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
;;
|
||||
partitions)
|
||||
cat /proc/partitions | awk '{print $4 ";" $3 ";"}' | grep -v name | grep -v "^;;$" > /var/ipfire/extrahd/partitions
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 (ide|partitions)"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user