[PATCH] clean up postinst to remove unused variables
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Daniel Baumann <daniel@debian.org>
---
packages/live-installer/debian/changelog | 3 +++
packages/live-installer/debian/postinst | 21 ---------------------
2 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/packages/live-installer/debian/changelog b/packages/live-installer/debian/changelog
index e17326a..c8f0f36 100644
--- a/packages/live-installer/debian/changelog
+++ b/packages/live-installer/debian/changelog
@@ -8,6 +8,9 @@ live-installer (4) UNRELEASED; urgency=low
* Unconditionally bind-mount /dev on /target after unpacking of the image,
this needs to be done always and independently of udev anyway.
+ [ Otavio Salvador ]
+ * Clean up postinst to remove unused variables.
+
-- Daniel Baumann <daniel@debian.org> Fri, 29 Feb 2008 15:28:00 +0100
live-installer (3) unstable; urgency=low
diff --git a/packages/live-installer/debian/postinst b/packages/live-installer/debian/postinst
index bdcb14e..fec6cf8 100755
--- a/packages/live-installer/debian/postinst
+++ b/packages/live-installer/debian/postinst
@@ -6,30 +6,9 @@ db_capb backup
. /usr/lib/base-installer/library.sh
-ETCDIR=/target/etc
-ARCH=`udpkg --print-architecture`
-PROTOCOL=
-MIRROR=
-DIRECTORY=
-COMPONENTS=
-DISTRIBUTION=
-INCLUDES=
-EXCLUDES=
-KERNEL=
-KERNEL_LIST=/tmp/available_kernels.txt
-KERNEL_MAJOR="$(uname -r | cut -d . -f 1,2)"
-KERNEL_VERSION="$(uname -r | cut -d - -f 1)"
-KERNEL_ABI="$(uname -r | cut -d - -f 1,2)"
-MACHINE="$(uname -m)"
-NUMCPUS=$(cat /var/numcpus 2>/dev/null) || true
-CPUINFO=/proc/cpuinfo
-SPEAKUP=/proc/speakup
NEWLINE="
"
-SUBARCH="$(archdetect)"
-SUBARCH="${SUBARCH#*/}"
-
install_live_system () {
# Look at
PLACES=""
--
1.5.4.3
Reply to: