]> # Wait until network is ready timer=30 while [ $timer -gt 0 ]; do gateway=$(route -n | awk '/^0.0.0.0/ {print $2}') if [ -n "$gateway" ] && [ $(ping -q -n -c 1 $gateway | awk -F, '/received/ {print $2}' | awk '{print $1}') -eq 1 ]; then break fi timer=$((timer-1)) sleep 1 done if [ $timer -eq 0 ]; then echo "No network communication !!!" fi # Remove this script rm -f /tmp/SnapPrepare http://slackware.oregonstate.edu/slackware-14.0/slackware/a/inotify-tools-3.14-i486-1.txz 5aa51a1d2c56cab72c582c07ff907f9d >/tmp/snap.log # # SNAP is installed # # Load the existing web component. # echo "Loading web component" >>/tmp/snap.log cd /usr/local/emhttp/plugins if [ -d /usr/local/emhttp/plugins/snap ] then rm -r /usr/local/emhttp/plugins/snap fi if [ -f /usr/local/emhttp/plugins/snap_web.tgz ] then rm /usr/local/emhttp/plugins/snap_web.tgz fi # # install web component # cp /boot/config/plugins/snap/snap_web.tgz /usr/local/emhttp/plugins /usr/bin/tar -xzf snap_web.tgz rm /usr/local/emhttp/plugins/snap_web.tgz # remove our jQuery from snap.php if Dynamix is running if [ -f /var/log/plugins/dynamix.webGui ] then sed -i -e 's/