26 if [[ -z ${sdir} && ! -d ${base}/${ddir} ]] ; then
30 sprog=${cpudir}/${sdir}/${n}
31 dprog=${base}/${ddir}/${o}
33 if [[ $undo -eq 0 ]] ; then
34 if [[ -d ${base}/${ddir} ]] ; then
35 if [[ ! -f ${dprog}.dist ]] ; then
36 $debug /bin/mv ${dprog} ${dprog}.dist
37 $debug /bin/cp -p ${dprog}.dist ${dprog}
39 $debug /bin/cp ${sprog} ${dprog}
41 links=$(/bin/ls -dl ${dprog} | awk ' { print $2; } ' -)
42 if [[ $links -eq 1 ]] ; then
43 if [[ ! -f ${dprog}.dist ]] ; then
44 $debug /bin/mv ${dprog} ${dprog}.dist
45 $debug /bin/cp -p ${dprog}.dist ${dprog}
47 $debug /bin/cp ${sprog} ${dprog}
51 if [[ -f ${dprog}.dist ]] ; then
52 $debug /bin/mv -f ${dprog}.dist ${dprog}
57 while [[ $# -gt 0 ]] ; do
83 cpudir=${cpu}-`uname -r`
85 if [[ -d ${cpudir}/amd64 ]] ; then
88 if [[ -d ${cpudir}/sparcv9 ]] ; then
91 if [[ -d ${cpudir}/i86 ]] ; then
94 if [[ -d ${cpudir}/sparc ]] ; then
97 echo "$cpudir.$big.$small."
99 if [[ -n ${big} ]] ; then
100 for i in ipf:ipf.exe ipfs ipfstat ipmon ipnat ippool; do
101 update $SBIN ${big}:${big} $i
103 update /usr/lib/ipf ${big}:${big} ipftest
104 update /usr/kernel/drv ${big}:${big} ipf
106 if [[ -n ${small} ]] ; then
107 for i in ipf:ipf.exe ipfs ipfstat ipmon ipnat ippool; do
108 update $SBIN ${small}:${small} $i
110 update /usr/lib/ipf ${small}:${small} ipftest
111 update /usr/kernel/drv "${small}:" ipf
113 if [[ -z ${small} && -z ${big} ]] ; then
114 if [[ -z ${small} ]] ; then
124 for i in ipf:ipf.exe ipfs ipfstat ipmon ipnat ippool; do
125 update $SBIN :${small} $i
127 update /usr/lib/ipf :${small} ipftest
128 update /usr/kernel/drv :${small} ipf
132 for i in ip_compat.h ip_fil.h ipl.h ip_nat.h ip_state.h ip_sync.h ip_scan.h \
133 ip_pool.h ip_lookup.h; do
134 update /usr/include/netinet : $i
135 update /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/netinet/ : $i