[4/5] bd: script for binding file and acrypto filters

Evgeniy Polyakov
2005-03-08T02:43:16Z

#!/bin/sh

num=$#

if [ $num != 2 ]; then
echo "Usage: $0 device backend_file"
exit -1
fi

dev=$1
file=$2

./ubd bind dev /dev/bd0 filter acrypto cipher aes128 mode ecb priority 123 key 00000000000000000000000000000000 iv 00
#./ubd bind dev $dev filter xor
./ubd bind dev $dev filter fd file $file