Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/sbin/opnsense-shell
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ CMD_SETADDR="/usr/local/opnsense/scripts/shell/setaddr.php"
CMD_SETPORTS="/usr/local/opnsense/scripts/shell/setports.php"
CMD_SHELL="/bin/csh"

[ -f /etc/opnsense-shell ] && . /etc/opnsense-shell

# rc.d may call this while being root using `su -m user -c ...'
# and it has arguments to pass through to the shell. It creates
# a problem for us as su(1) assumes a full root shell and has no
Expand Down