Kitz ADSL Broadband Information
Home Broadband ISPs Tech Routers Wiki Forum
   Compare ISP   Rate your ISP

Bash patch

From kitz wiki
Jump to: navigation, search

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"
 read -p "Enter an option: " opmode
@@ -147,6 +147,9 @@
+        /usr/local/bin/bash -l
+        ;;
        if grep "$WORD" "$CONFIG"; then
                links "https://localhost"