summaryrefslogtreecommitdiff
path: root/install_widgets.sh
blob: 24c5d2932d3191b336493e937dccef7f470889bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
PWD_I="/root/widget_demo"
echo "Widget Installation"
if [ "$(id -u)" != "0" ]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi
FILE=`ls ${PWD_I}/*.wgt` 
if [ -z "$FILE" ]; then
   echo "$PWD_I doesn't contains any widgets (.wgt)" 1>&2
   exit 1
fi
for i in $FILE
do 
wrt-installer -i $i
done