%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /backups/router/usr/local/etc/rc.syshook.d/backup/
Upload File :
Create Path :
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

Zerion Mini Shell 1.0