1#!/bin/sh 2 3if [ $(id -u) != 0 ]; then 4 echo $msg must be run as root >&2 5 exit 0 6fi 7 8echo "--------------------" 9echo "running psock_fanout test" 10echo "--------------------" 11./psock_fanout 12if [ $? -ne 0 ]; then 13 echo "[FAIL]" 14else 15 echo "[PASS]" 16fi 17