mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
rc: fix access to shell for now
PR: https://forum.opnsense.org/index.php?topic=7222.0
This commit is contained in:
parent
557c0b6f9a
commit
b5a3ad126b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user