#!/bin/ash
if [ $(id -u) -ne 0 ]; then
	echo iptraf needs to run as root.
	exec su -c "iptraf.bin $@"
else
	exec iptraf.bin "$@"
fi