Commit 8b95b79d authored by Franco Fichtner's avatar Franco Fichtner

etc: new home for rc.initial

parent 9bc667c6
# $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/sh
/bin/csh
/bin/tcsh
/etc/rc.initial
/usr/local/sbin/ssh_tunnel_shell
# Detect interactive logins and display the shell
/etc/rc.initial
exit
# Detect interactive logins and display the shell
/etc/rc.initial
exit
set autologout="0"
set autolist set color set colorcat
setenv CLICOLOR "true"
setenv LSCOLORS "exfxcxdxbxegedabagacad"
if ($term == "xterm" || $term == "vt100" || $term == "vt102" || $term == "vt220" || $term !~ "con*") then
bindkey "\e[2~" overwrite-mode # Ins
bindkey "\e[3~" delete-char # Del
bindkey "\e[1~" beginning-of-line # Home vt
bindkey "\e[4~" end-of-line # End vt
bindkey "\eOH" beginning-of-line # Home vt220
bindkey "\eOF" end-of-line # End vt220
bindkey "\e[H" beginning-of-line # Home kvt
bindkey "\e[F" end-of-line # End kvt
bindkey "\e[7~" beginning-of-line # Home rxvt/konsole
bindkey "\e[8~" end-of-line # End rxvt/konsole
endif
...@@ -9,7 +9,7 @@ if [ $PFSENSETYPE = "pfSense" ] || [ $PFSENSETYPE = "nanobsd" ]; then ...@@ -9,7 +9,7 @@ if [ $PFSENSETYPE = "pfSense" ] || [ $PFSENSETYPE = "nanobsd" ]; then
fi fi
# Detect interactive logins and display the shell # Detect interactive logins and display the shell
detect_command='[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial' detect_command='[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /usr/local/etc/rc.initial'
echo "$detect_command" > $CVS_CO_DIR/root/.shrc echo "$detect_command" > $CVS_CO_DIR/root/.shrc
echo "$detect_command" >> $CVS_CO_DIR/root/.profile echo "$detect_command" >> $CVS_CO_DIR/root/.profile
......
...@@ -387,7 +387,7 @@ function local_user_set(& $user) { ...@@ -387,7 +387,7 @@ function local_user_set(& $user) {
$user_uid = $user['uid']; $user_uid = $user['uid'];
$user_name = $user['name']; $user_name = $user['name'];
$user_home = "{$home_base}{$user_name}"; $user_home = "{$home_base}{$user_name}";
$user_shell = "/etc/rc.initial"; $user_shell = "/usr/local/etc/rc.initial";
$user_group = "nobody"; $user_group = "nobody";
// Ensure $home_base exists and is writable // Ensure $home_base exists and is writable
...@@ -426,7 +426,7 @@ function local_user_set(& $user) { ...@@ -426,7 +426,7 @@ function local_user_set(& $user) {
pclose($fd); pclose($fd);
$user_group = "wheel"; $user_group = "wheel";
$user_home = "/root"; $user_home = "/root";
$user_shell = "/etc/rc.initial"; $user_shell = "/usr/local/etc/rc.initial";
} }
/* read from pw db */ /* read from pw db */
......
#!/bin/sh #!/bin/sh
# /etc/rc.initial
# part of pfSense by Scott Ullrich # part of pfSense by Scott Ullrich
# Copyright (C) 2004-2011 Scott Ullrich, All rights reserved. # Copyright (C) 2004-2011 Scott Ullrich, All rights reserved.
# originally based on m0n0wall (http://neon1.net/m0n0wall) # originally based on m0n0wall (http://neon1.net/m0n0wall)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment