18 lines
295 B
Bash
18 lines
295 B
Bash
#! /bin/sh
|
|
#
|
|
# %Z%%M% %I% %E% SMI
|
|
#
|
|
cd ${DESTDIR}/usr/hosts
|
|
rm -f [a-z]*
|
|
if (ypcat hosts > /dev/null 2>&1 ) then
|
|
for i in `ypcat hosts | awk '!/^#/ {print $2}' `
|
|
do
|
|
ln -s /usr/ucb/rsh $i
|
|
done
|
|
else
|
|
for i in `awk '!/^#/ {print $2}' ${DESTDIR}/etc/hosts`
|
|
do
|
|
ln -s /usr/ucb/rsh $i
|
|
done
|
|
fi
|