%PDF- %PDF-
Direktori : /backups/router/usr/local/etc/rc.syshook.d/backup/ |
Current File : //backups/router/usr/local/etc/rc.syshook.d/backup/20-duid |
#!/bin/sh BACKUPFILE="/conf/dhcp6c_duid" BACKUPTARGET="/var/db/dhcp6c_duid" if [ "${1}" = "restore" ]; then rm -f "${BACKUPTARGET}" if [ -f "${BACKUPFILE}" ]; then cp "${BACKUPFILE}" "${BACKUPTARGET}" fi else rm -f "${BACKUPFILE}" if [ -f "${BACKUPTARGET}" ]; then cp "${BACKUPTARGET}" "${BACKUPFILE}" fi fi