home *** CD-ROM | disk | FTP | other *** search
- #!/sbin/sh
-
- TMP=/tmp/yqt.$$
-
- cleanup() {
- rm -f ${TMP}
- exit 1
- }
-
- #-----
- # Install the driver
- #-----
-
- /etc/conf/bin/idinstall -d ipacc > /dev/null 2>&1
- cd /tmp/ipacc
- /etc/conf/bin/idinstall -a -k ipacc || exit 1
- cd /
- rm -rf /tmp/ipacc
-
- #-----
- # Edit /etc/ap/chan.ap
- #-----
-
- trap "cleanup" 1 2 3 15
-
- IP=`ls -l /dev/ip | sed 's/,//' | awk '{ print $6; }'`
- sed '/ipacc +++/,/ipacc ---/d' /etc/ap/chan.ap > ${TMP}
- (echo "# ipacc +++ do not edit this line"
- echo "# push ipacc over /dev/dip"
- echo "${IP} 0 255 ipacc"
- echo "# ipacc --- do not edit this line") >> ${TMP}
- cp ${TMP} /etc/ap/chan.ap
- rm -f ${TMP}
-
- echo
- echo Module ipacc installed.
- echo You must relink your kernel to activate the modules.
- echo
- exit 0
-