Project

General

Profile

« Previous | Next » 

Revision da5cc675

Added by Scott Ullrich almost 16 years ago

Backout last commit, need to figure out the console angle as well

View differences:

tmp/post_upgrade_command
27 27
	fi
28 28
fi
29 29

  
30
# Detect interactive logins and display the shell
31
echo "if [ `env | grep SSH_TTY | wc -l` -gt 0 ]; then" >> $CVS_CO_DIR/root/.shrc
32
echo "        /etc/rc.initial" >> $CVS_CO_DIR/root/.shrc
33
echo "        exit" >> $CVS_CO_DIR/root/.shrc
34
echo "fi" >> $CVS_CO_DIR/root/.shrc
35
echo "if [ `env | grep SSH_TTY | wc -l` -gt 0 ]; then" >> $CVS_CO_DIR/root/.profile
36
echo "        /etc/rc.initial" >> $CVS_CO_DIR/root/.profile
37
echo "        exit" >> $CVS_CO_DIR/root/.profile
38
echo "fi" >> $CVS_CO_DIR/root/.profile
39

  
40 30
# Now turn on or off serial console as needed
41 31
php -f /tmp/post_upgrade_command.php
42 32

  

Also available in: Unified diff