set -e
-if [ "\$UID" != 0 ] ; then
- echo "Error: become root before starting $0" >& 2
+if [ \$(id -u) != 0 ] ; then
+ echo "Error: become root before starting \$0" >& 2
exit 1
fi
set -e
-if [ "\$UID" != 0 ] ; then
- echo "Error: become root before starting $0" >& 2
+if [ \$(id -u) != 0 ] ; then
+ echo "Error: become root before starting \$0" >& 2
exit 1
fi