summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin/backup
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 02:20:43 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 02:20:43 +0000
commit28672b66342b59f24d6ca7ff5815e6223401ee1c (patch)
tree8f5982ee0bf8d77e44db8ab26209096264d02aa3 /openwrt/package/base-files/default/sbin/backup
parent9c827a68c1fb88ce9cf47fe9d944c788390b8e70 (diff)
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
Diffstat (limited to 'openwrt/package/base-files/default/sbin/backup')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/backup32
1 files changed, 0 insertions, 32 deletions
diff --git a/openwrt/package/base-files/default/sbin/backup b/openwrt/package/base-files/default/sbin/backup
deleted file mode 100755
index 33bad53501..0000000000
--- 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