etc: new home for rc.initial

This commit is contained in:
Franco Fichtner 2014-12-09 14:00:19 +01:00
parent 9bc667c6f6
commit 8b95b79da8
7 changed files with 3 additions and 42 deletions

View File

@ -1,12 +0,0 @@
# $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

View File

@ -1,3 +0,0 @@
# Detect interactive logins and display the shell
/etc/rc.initial
exit

View File

@ -1,3 +0,0 @@
# Detect interactive logins and display the shell
/etc/rc.initial
exit

View File

@ -1,20 +0,0 @@
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

View File

@ -9,7 +9,7 @@ if [ $PFSENSETYPE = "pfSense" ] || [ $PFSENSETYPE = "nanobsd" ]; then
fi
# 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/.profile

View File

@ -387,7 +387,7 @@ function local_user_set(& $user) {
$user_uid = $user['uid'];
$user_name = $user['name'];
$user_home = "{$home_base}{$user_name}";
$user_shell = "/etc/rc.initial";
$user_shell = "/usr/local/etc/rc.initial";
$user_group = "nobody";
// Ensure $home_base exists and is writable
@ -426,7 +426,7 @@ function local_user_set(& $user) {
pclose($fd);
$user_group = "wheel";
$user_home = "/root";
$user_shell = "/etc/rc.initial";
$user_shell = "/usr/local/etc/rc.initial";
}
/* read from pw db */

View File

@ -1,6 +1,5 @@
#!/bin/sh
# /etc/rc.initial
# part of pfSense by Scott Ullrich
# Copyright (C) 2004-2011 Scott Ullrich, All rights reserved.
# originally based on m0n0wall (http://neon1.net/m0n0wall)