- Timestamp:
- May 18, 2012, 9:49:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/root/.cshrc
r10900 r10905 1 # $FreeBSD: rele ase/9.0.0/share/skel/dot.cshrc 170119 2007-05-29 22:07:57Z dougb $1 # $FreeBSD: releng/9.0/etc/root/dot.cshrc 170088 2007-05-29 06:37:58Z dougb $ 2 2 # 3 3 # .cshrc - csh resource script, read at beginning of execution by each shell … … 15 15 umask 22 16 16 17 set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin )17 set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin /tools) 18 18 19 setenv EDITOR vi 19 setenv EDITOR vim 20 20 setenv PAGER more 21 21 setenv BLOCKSIZE K … … 23 23 if ($?prompt) then 24 24 # An interactive shell -- set some stuff up 25 set filec 26 set histfile = /tmp/.history 25 set prompt = "`/bin/hostname -s`# " 26 set filec 27 set histfile = /tmp/.history 27 28 set history = 1000 28 29 set savehist = 1000 … … 34 35 endif 35 36 endif 37 38 if ($?prompt) then 39 # Display some tricks and pointers for management on login. 40 echo "" 41 echo "Statistics:" 42 echo " - Build "`grep 'Revision:' /tools/wl-release.txt` 43 echo " - Config "`grep Generated /usr/local/etc/wleiden.yaml | tr -d '#'` 44 setenv cs_conn `arp -na | grep -v -e ' 00:15:6d' -e 'incomplete' -e 'permanent' -e ' 00:0d:b9' | wc -l` 45 setenv cs_auth `pfctl -twlportal -Tshow | wc -l` 46 echo " - $cs_conn clients and $cs_auth authenticated" 47 echo " - "`uptime` 48 echo "" 49 echo "Active Bridges:" 50 arp -na | grep -e ' 00:15:6d' | sed -e 's/^/ - /' | grep ' ' || echo " - none" 51 echo "" 52 echo "Active Neighboors:" 53 arp -a | grep -v 'permanent' | grep ' 00:0d:b9' |\ 54 sed -e 's/^/ - /' -e 's/.wleiden.net//' -e 's/expires .*$//' |\ 55 grep ' ' || echo " - none" 56 echo "" 57 endif
Note:
See TracChangeset
for help on using the changeset viewer.