Bash patch
From kitz wiki
When logging in to pfSense via the console or ssh terminal, you are presented with an access menu with various options, option 8 gives shell access but using the default FreeBSD csh shell. This patch adds an extra option, option 17 which will login to a bash shell, you will also need to install bash, the command for that is in the below instructions.
In the pfSense shell run the following command. pkg install bash
Paste the below code into the Patch Contents box.
Add a description such as 'Add Bash shell to terminal menu' in the Description box.
Set Path Strip Count to '0'.
Base Directory to '/etc/'.
--- rc.initial.dist 2017-02-02 22:28:17.691805000 +0000 +++ rc.initial 2017-02-02 22:27:52.297217000 +0000 @@ -88,7 +88,7 @@ echo " 5) Reboot system ${sshd_option}" echo " 6) Halt system 15) Restore recent configuration" echo " 7) Ping host 16) Restart PHP-FPM" -echo " 8) Shell" +echo " 8) Shell 17) Bash Shell" echo read -p "Enter an option: " opmode @@ -147,6 +147,9 @@ 16) /etc/rc.php-fpm_restart ;; +17) + /usr/local/bin/bash -l + ;; 100) if grep "$WORD" "$CONFIG"; then links "https://localhost"