3 SCRIPTDIR=`dirname $(readlink -f $0)`
4 SMACK_FILE=$SCRIPTDIR/all_smack.rule
7 echo "Add smack rule in $SMACK_FILE"
8 echo "==================================================="
14 NO_BLANK=$(echo $rule | sed 's/ //g' | sed 's/ //g')
15 if [ ${#NO_BLANK} -lt 1 ]; then
18 elif [ `echo $NO_BLANK|cut -c1-1` = '#' ]; then
23 echo "sdb shell \"echo $rule > /smack/load2\""
24 sdb shell "echo $rule > /smack/load2"
27 echo "==================================================="