Debuged stenc(added sudo) ; improved help page
This commit is contained in:
parent
8d6e755be5
commit
688ccfa54d
10
do-plication
10
do-plication
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
if [ "$1" = "-h" ]
|
if [ "$1" = "-h" ]
|
||||||
then
|
then
|
||||||
|
echo
|
||||||
|
echo
|
||||||
echo "do-plication <option> <enable/disable Encryprion> <n> [directory to back up] [path to key file] [ key file descriptoin(only if key not alreadey created) ]"
|
echo "do-plication <option> <enable/disable Encryprion> <n> [directory to back up] [path to key file] [ key file descriptoin(only if key not alreadey created) ]"
|
||||||
echo
|
echo
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
@ -15,6 +17,8 @@ if [ "$1" = "-h" ]
|
|||||||
echo "Enable/Disable Encryprion"
|
echo "Enable/Disable Encryprion"
|
||||||
echo "-e Encrypt "
|
echo "-e Encrypt "
|
||||||
echo "-n noEncrypt"
|
echo "-n noEncrypt"
|
||||||
|
echo
|
||||||
|
echo
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -24,11 +28,11 @@ if [ "$2" = "-e" ]
|
|||||||
if [$? -gt 0]
|
if [$? -gt 0]
|
||||||
then
|
then
|
||||||
echo "key not fount creating key"
|
echo "key not fount creating key"
|
||||||
stenc -g 256 -k "$5" -kd "$6";
|
sudo stenc -g 256 -k "$5" -kd "$6";
|
||||||
stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod
|
sudo stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod
|
||||||
else
|
else
|
||||||
echo "key fount using key"
|
echo "key fount using key"
|
||||||
stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod
|
sudo stenc -f /dev/nst0 -e on -k "$5" -a 1 --ckod
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user