You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
501 B
35 lines
501 B
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
DESC="Préparation du système Kali pour compatibilité COW et TGZ."
|
|
|
|
run() {
|
|
|
|
. $VDN_PATH/bin/functions-scripts.sh
|
|
|
|
setErrorHandler
|
|
echoStart
|
|
|
|
name="kali"
|
|
|
|
GUEST_SYS=$(vdn-infos $name | grep GUEST_SYS | cut -d '=' -f 2)
|
|
|
|
GUEST_DIR=$VDN_PATH/distribs/guests/direct/$GUEST_SYS
|
|
|
|
if [ ! -e $GUEST_DIR/prepare.sh ]; then
|
|
error "$GUEST_DIR/prepare.sh not found"
|
|
fi
|
|
|
|
startAndWaitSsh $name
|
|
|
|
(
|
|
cd $GUEST_DIR
|
|
./prepare.sh $name
|
|
)
|
|
|
|
unsetErrorHandler
|
|
echoDone
|
|
}
|
|
|