| #!/bin/sh |
| # |
| PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH |
| |
| # try to bomb out fast if anything fails.... |
| set -e |
| |
| argv0=`basename $0` |
| dir=`pwd` |
| karch=`uname -m` |
| archdir="/sys/arch/$karch" |
| confdir="$archdir/conf" |
| |
| echo -n "Installing " |
| for i in ip_fil.[ch] fil.c ip_nat.[ch] ip_frag.[ch] ip_state.[ch] ip_proxy.[ch] ip_auth.[ch] ip_log.c ip_compat.h ipl.h ip_ftp_pxy.c ip_rcmd_pxy.c ip_raudio_pxy.c ; do |
| echo -n "$i " |
| cp $i /sys/netinet/ |
| chmod 644 /sys/netinet/$i |
| done |
| echo "" |
| if [ -f /sys/netinet/ip_fil_compat.h ] ; then |
| echo "Linking /sys/netinet/ip_compat.h to /sys/netinet/ip_fil_compat.h" |
| rm /sys/netinet/ip_fil_compat.h |
| ln -s /sys/netinet/ip_compat.h /sys/netinet/ip_fil_compat.h |
| fi |
| exit 0 |