I got a lot of answers and i want to thank all the good people
that answer my question.
i choose to include only two answers because they represent
most of the answers.
The original question was :
> Does anyone knows where is the location of the "shcat" command
> that the /etc/rcS.d/S30rootusr.sh use two times in the procedure:
> if test "$interface_names" != "/etc/hostname.*[0-9]"
> echo "configuring network interfaces:\c"
> set `echo /etc/hostname\.*[0-9]`
> while test $# -ge 2
> if [ "$1" != "xx0" ]; then
> addr=`shcat /etc/hostname\.$1`
> /sbin/ifconfig $1 plumb
> if test -n "$addr"
> /sbin/ifconfig $1 inet "$addr"
> netmask + \
> broadcast + -trailers up
> 2>&1 > /dev/null
> echo " $1\c"
> echo "."
> # configure the rest of the interfaces automatically, quietly.
> /sbin/ifconfig -ad auto-revarp netmask + broadcast + -trailers up \
> 2>&1 >/dev/null
> # Set the hostname from a local config file, if one exists.
> hostname="`shcat /etc/nodename 2>/dev/null`"
> if [ ! -z "$hostname" ]; \
> /sbin/uname -S $hostname
> any ideas ?
The solutions :
shcat is a shell function defined in /etc/rcS. It's intended to do
what 'cat' does when the cat executable may not be available (if /usr
look in /etc/rcS which runs the scripts in /etc/rcS.d and you will find the function:
# shcat file
# Simulates cat in sh so it doesn't need to be on the root filesystem.
while test $# -ge 1
while read i
done < $1
Thank again to all of you.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:42 CDT