版主好!各位好!以下是我增加的在rc.local的内容
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo "testtestestesttestestesttestestesttestestesttestes"
echo "testtestestesttestestesttestestesttestestesttestes"
echo "testtestestesttestestesttestestesttestestesttestes"
echo "testtestestesttestestesttestestesttestestesttestes"
echo "testtestestesttestestesttestestesttestestesttestes"
echo "testtestestesttestestesttestestesttestestesttestes"
#cd /root
if `mount -t cifs -o username=administrator,password=asdf-123 //192.168.222.242/share /root/testmount` ;then
echo "the mount is ok!!!!"
else
echo "nonononoon!!"
fi
exit 0