home *** CD-ROM | disk | FTP | other *** search
- MODULE=dup
- make ${MODULE}.o || exit # Don't bother with anything if we can't make.
-
- NOFILE=20 # Do we really need more?
-
- set -e
-
- cd /usr/sys/conf
-
- [ -d /dev/fd ] && [ -c /dev/stdin ] ||
- {
- echo 'Making files in /dev'
- major=`./configure -j NEXTMAJOR`
-
- echo 'The major device number for the /dev/fd driver is' $major
-
- echo 'Adding "../io/dup/dup.o" to link_xenix'
- ed - ./link_xenix <<\SCRIPT
- /uts.o/a
- ../io/dup/dup.o \
- .
- w
- q
- SCRIPT
-
- echo 'Updating master and xenixconf files'
- ./configure -c -m $major -a dupopen
-
- rm -rf /dev/fd /dev/stdin /dev/stdout /dev/stderr
- mkdir /dev/fd
- chmod 755 /dev/fd
- minor=0
- while [ $minor -lt $NOFILE ]
- do
- mknod /dev/fd/$minor c $major $minor
- chmod 666 /dev/fd/$minor
- minor=`expr $minor + 1`
- done
- ln -f /dev/fd/0 /dev/stdin
- ln -f /dev/fd/1 /dev/stdout
- ln -f /dev/fd/2 /dev/stderr
- }
-
- echo 'Building new xenix'
- ./link_xenix
-
- echo 'You must now install the new xenix in / and reboot'
-