From 28672b66342b59f24d6ca7ff5815e6223401ee1c Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 7 Nov 2005 02:20:43 +0000 Subject: remove backup/restore for now. will add proper scripts with webif integration later... git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2371 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/base-files/default/sbin/backup | 32 -------------------------- 1 file changed, 32 deletions(-) delete mode 100755 openwrt/package/base-files/default/sbin/backup (limited to 'openwrt/package/base-files/default/sbin/backup') diff --git a/openwrt/package/base-files/default/sbin/backup b/openwrt/package/base-files/default/sbin/backup deleted file mode 100755 index 33bad5350..000000000 --- a/openwrt/package/base-files/default/sbin/backup +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -for param in $*; do - case "$param" in - *) - OUTPUT_FILE="$param" - ;; - esac -done - -if [ "$OUTPUT_FILE" = "-" ]; then - echo "Writing backup to stdout.." >&2 -elif [ "$OUTPUT_FILE" = "" ]; then - echo "No output file." - exit 1 -else - echo "Writing backup to $OUTPUT_FILE" >&2 - exec > "$OUTPUT_FILE" -fi - -echo __FILELIST__ -find /etc -type f > /tmp/.wlbackup_files -cat /tmp/.wlbackup_files - -echo __IPKG__ -cat /etc/ipkg.conf - -echo __PACKAGES__ -grep '^Package:' /usr/lib/ipkg/status | cut -d' ' -f2 - -echo __FILES__ -tar -T /tmp/.wlbackup_files -cz 2>/dev/null -rm -f /tmp/.wlbackup_files -- cgit v1.2.3