diff --git a/src/sbin/opnsense-shell b/src/sbin/opnsense-shell index cbc3ab55cb7..594a9d00779 100755 --- a/src/sbin/opnsense-shell +++ b/src/sbin/opnsense-shell @@ -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