blob: 81fdd76e8b4563ba9f26631cb1a0fabc54f2b30c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#! /bin/bash
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo $0 $*"
exit 1
fi
if [ -z "$1" ]; then
echo "Demo type argument missing!"
echo "Usage:"
echo -e "\n'$0 <demo_type>' to run this command!\n"
echo "<demo_type> - vpp or hc"
exit 2
fi
demo_type=$1
if [[ "$demo_type" != "vpp" && "$demo_type" != "hc" ]]; then
echo "Demo type argument is wrong!"
echo "<demo_type> - vpp or hc"
exit 3
fi
./clean_demo.sh
sleep 5
./start_demo.sh ${demo_type}
|