Project

General

Profile

Download (1.13 KB) Statistics
| Branch: | Tag: | Revision:
1
#
2
# dot.profile
3
#
4
# part of pfSense (https://www.pfsense.org)
5
# Copyright (c) 2004-2013 BSD Perimeter
6
# Copyright (c) 2013-2016 Electric Sheep Fencing
7
# Copyright (c) 2014-2023 Rubicon Communications, LLC (Netgate)
8
# All rights reserved.
9
#
10
# Licensed under the Apache License, Version 2.0 (the "License");
11
# you may not use this file except in compliance with the License.
12
# You may obtain a copy of the License at
13
#
14
# http://www.apache.org/licenses/LICENSE-2.0
15
#
16
# Unless required by applicable law or agreed to in writing, software
17
# distributed under the License is distributed on an "AS IS" BASIS,
18
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
# See the License for the specific language governing permissions and
20
# limitations under the License.
21

    
22
# Detect interactive logins and display the shell
23
unset _interactive
24
if [ -n "${SSH_TTY}" ]; then
25
	_interactive=1
26
else
27
	case "${TERM}" in
28
	cons25|xterm|vt100|vt102|vt220)
29
		_interactive=1
30
		;;
31
	esac
32
fi
33

    
34
if [ -n "${_interactive}" ]; then
35
	/usr/bin/resizewin -z
36
	if [ -f ~/.profile.local ]; then
37
		. ~/.profile.local
38
	fi
39
	if [ ! -f ~/.nomenu ]; then
40
		/etc/rc.initial
41
		exit
42
	fi
43
fi
(2-2/4)