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

Bash patch

From kitz wiki
Revision as of 13:02, 7 June 2023 by Chrysalis (talk | contribs) (Created page with "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 FreeB...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 'Remove schedule and add limiters Firewall UI' 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"