rc: fix access to shell for now

PR: https://forum.opnsense.org/index.php?topic=7222.0
This commit is contained in:
Franco Fichtner 2018-02-08 19:01:28 +01:00
parent 557c0b6f9a
commit b5a3ad126b

View File

@ -9,10 +9,11 @@
trap : 2
trap : 3
if [ "$(id -u)" != "0" ]; then
echo "Must be root."
exit 1
fi
# XXX service(8) calls this without being root
#if [ "$(id -u)" != "0" ]; then
# echo "Must be root."
# exit 1
#i
# shell started with parameters, passthrough to real shell
if [ -n "${*}" ]; then