home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / sbin / syslogd < prev    next >
Text File  |  2006-11-29  |  359b  |  18 lines

  1. #! /bin/sh
  2.  
  3. # Check if /dev/tty4 is available (might not be the case for installs via
  4. # serial line).
  5.  
  6. rm -f /etc/syslog.conf
  7. if ( test -c /dev/tty4 && > /dev/tty4 ) > /dev/null 2>&1 ; then
  8.     cat <<-blub >>/etc/syslog.conf
  9.     *.*            /dev/tty4
  10.     blub
  11. else
  12.     cat <<-blub >>/etc/syslog.conf
  13.     *.*            /dev/null
  14.     blub
  15. fi
  16.  
  17. exec -a /sbin/syslogd /sbin/syslogd.bin ${1+"$@"}
  18.