[Baie de disques] Permettre que update.sh soit modulaire.
Ignore-this: 5edc9c80ef506e389c99f240b4efc4fa darcs-hash:20120807200639-ab199-aee17fd9ce1ad782b48f3aa0eedc66d4581af988.gz
This commit is contained in:
parent
209719cfc1
commit
7bf024e825
1 changed files with 8 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
# update.sh
|
# update.sh
|
||||||
# ---------
|
# ---------
|
||||||
|
# Qui taper si ça chie : Pierre-Elliott Bécue <becue@crans.org>
|
||||||
# Copyright : (c) 2008, Jeremie Dimino <jeremie@dimino.org>
|
# Copyright : (c) 2008, Jeremie Dimino <jeremie@dimino.org>
|
||||||
# Licence : BSD3
|
# Licence : BSD3
|
||||||
|
|
||||||
|
@ -26,8 +27,14 @@ exec_cmd() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [[ $1 = "" ]]; then
|
||||||
|
BAIE="slon"
|
||||||
|
else
|
||||||
|
BAIE="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
exec_cmd "Récupération du mapping lun<->nom de volume" \
|
exec_cmd "Récupération du mapping lun<->nom de volume" \
|
||||||
python /usr/scripts/gestion/iscsi/nols-get-volume-mapping.py
|
python /usr/scripts/gestion/iscsi/"$BAIE"-get-volume-mapping.py
|
||||||
|
|
||||||
exec_cmd "Rechargement des règles de udev" \
|
exec_cmd "Rechargement des règles de udev" \
|
||||||
invoke-rc.d udev reload
|
invoke-rc.d udev reload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue