Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/bash
USBPLACE="/volumeUSB1/usbshare/@sharebin/Webdav/router"
WHATV="$USBPLACE/backup-dhcp.sh"
WHAT="0 4 * * * root /bin/sh $WHATV"
WHATF="/etc/crontab"
TFILE="dhcpdStatic.ori"
P1="/etc/dhcpd/$TFILE"
P2="$USBPLACE/$TFILE.txt"
count=$(grep -c "$WHATV" $WHATF)
if [ "$count" -eq 0 ];then
echo "$WHAT" >> $WHATF
cp -p -f $P2 $P1
fi
cp -p -f $P1 $P2
We use essential cookies to make this site work, and optional cookies to enhance your experience.