55 lines
1.3 KiB
Bash
Executable File
55 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
# Script to execute the "dellmgr.bin" binary for LINUX ONLY
|
|
# This script opens a node at run time. It gets the major
|
|
# no of the megadev and then opens a node with the major number.
|
|
# If the node is already present, it removes the node first
|
|
# and then creates a fresh node.
|
|
|
|
|
|
# Get the major number of the megadev ioctl node
|
|
MAJOR=`grep megadev /proc/devices|awk '{print $1}'`
|
|
|
|
if [ ! x$MAJOR = x ]
|
|
then
|
|
# major device number found
|
|
rm -f /dev/megadev0 # remove if already there, ignore if not.
|
|
mknod /dev/megadev0 c $MAJOR 0
|
|
fi
|
|
|
|
# Execute the dellmgr binary
|
|
# RedHat 8.0 specific changes since 10-03-02: Timir/Amit as unicode is default
|
|
# on RH8.0 release
|
|
#------------
|
|
if [ `/sbin/consoletype` = vt ]
|
|
then
|
|
grep unicode_start /etc/profile.d/lang.sh && unicode_stop && setfont
|
|
fi
|
|
|
|
OLD_TERM=$TERM
|
|
case $TERM in
|
|
"xterm" | "linux")
|
|
;;
|
|
*) export TERM=linux;;
|
|
esac
|
|
|
|
# Execute dellmgr code
|
|
/usr/sbin/dellmgr.bin
|
|
|
|
# RedHat 8.0 specific changes since 10-03-02: Timir/Amit
|
|
# Restore bad things we did in our way
|
|
#------------
|
|
export TERM=$OLD_TERM
|
|
if [ `/sbin/consoletype` = vt ]
|
|
then
|
|
grep unicode_start /etc/profile.d/lang.sh && unicode_start && setfont
|
|
fi
|
|
# clear the screen to avoid the unwanted message display which
|
|
# appears on the screen otherwise : 10-25-2002 : amitp
|
|
|
|
clear
|
|
clear
|
|
|
|
|