24 lines
627 B
Bash
24 lines
627 B
Bash
#!/bin/sh
|
|
#created by hewd
|
|
#Date:2002-11-27
|
|
|
|
###############################################################################
|
|
#Check and install expect
|
|
###############################################################################
|
|
if(test -x /usr/bin/expect ) then
|
|
if(test -x /usr/local/bin/expect ) then
|
|
echo "Check Expect OK!"
|
|
else
|
|
cp ./expect /usr/local/bin
|
|
echo "Install expect to /usr/local/bin ok!"
|
|
fi
|
|
else
|
|
cp ./expect /usr/bin
|
|
chmod 755 /usr/bin/expect
|
|
cp ./expect /usr/local/bin
|
|
chmod 755 /usr/local/bin/expect
|
|
cp ./libexpect* /usr/lib
|
|
chmod 755 /usr/local/bin/libexpect*
|
|
echo "Install expect ok!"
|
|
fi
|