6 if ( -d /sys
/arch
/$karch ) set archdir
="/sys/arch/$karch"
7 if ( -d /sys
/$karch ) set archdir
="/sys/$karch"
8 set confdir
="$archdir/conf"
10 if ( $dir =~
*/FreeBSD
* ) cd ..
11 echo -n "Uninstalling "
12 foreach i
(ip_fil.
[ch
] ip_nat.
[ch
] ip_frag.
[ch
] ip_state.
[ch
] fil.c \
13 ip_auth.
[ch
] ip_proxy.
[ch
] ip_
{ftp,rcmd
,raudio
}_pxy.c ip_compat.h \
14 ip_log.c mlf_ipl.c ipl.h
)
16 /bin
/rm -f /sys
/netinet
/$i
20 echo "Removing link from /usr/include/osreldate.h to /sys/sys/osreldate.h"
21 rm /sys
/sys
/osreldate.h
23 set config
=`(cd $confdir; /bin/ls -1t [0-9A-Z_]*) | head -1`
24 echo -n "Kernel configuration to update [$config] "
26 if ( "$newconfig" != "" ) then
27 set config
="$confdir/$newconfig"
31 if ( -f $confdir/$newconfig ) then
32 mv $confdir/$newconfig $confdir/$newconfig.bak
34 if ( -d $archdir/..
/compile
/$newconfig ) then
37 while ( -d $archdir/..
/compile
/${newconfig}.
${bak} )
39 set dot
=`expr 1 + $dot`
41 mv $archdir/..
/compile
/$newconfig $archdir/..
/compile
/${newconfig}.
${bak}
43 egrep -v IPFILTER
$confdir/$newconfig.bak
> $confdir/$newconfig
44 echo 'You will now need to run "config" and build a new kernel.'