Removing live-reconfigure, not used anymore.
authorDaniel Baumann <daniel@debian.org>
Tue, 5 Jun 2012 19:16:14 +0000 (21:16 +0200)
committerDaniel Baumann <daniel@debian.org>
Tue, 5 Jun 2012 19:16:14 +0000 (21:16 +0200)
Makefile
backends/initramfs-tools/live.hook
bin/live-reconfigure [deleted file]

index 232d144..297259e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ install:
        cp bin/live-new-uuid bin/live-snapshot bin/live-swapfile $(DESTDIR)/sbin
 
        mkdir -p $(DESTDIR)/usr/share/live-boot
-       cp bin/live-preseed bin/live-reconfigure $(DESTDIR)/usr/share/live-boot
+       cp bin/live-preseed $(DESTDIR)/usr/share/live-boot
 
        mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks
        cp backends/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live
index 5fc01ec..1ff2a16 100755 (executable)
@@ -58,7 +58,6 @@ cp -a /lib/live/boot.sh /lib/live/boot "${DESTDIR}/lib/live"
 mkdir -p "${DESTDIR}"/lib/live-boot
 
 # Executables
-copy_exec /usr/share/live-boot/live-reconfigure /bin
 copy_exec /usr/share/live-boot/live-preseed /bin
 
 # klibc dependencies
diff --git a/bin/live-reconfigure b/bin/live-reconfigure
deleted file mode 100755 (executable)
index 16cb51d..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#! /bin/sh
-
-set -e
-
-export PATH=/usr/bin:/usr/sbin:/sbin:/bin
-
-frontend=noninteractive
-
-findcommandinroot ()
-{
-       ROOT="${1}/"
-       shift
-
-       while [ "${#}" -ge 1 ]
-       do
-               P="${PATH}"
-
-               while [ "${P}" ]
-               do
-                       D=${P%%:*}
-                       P=${P#*:}
-
-                       if [ "${D}" = "${P}" ]
-                       then
-                               P=
-                       fi
-
-                       if [ -z "${D}" ]
-                       then
-                               D=.
-                       fi
-
-                       if [ -x "${ROOT}${D}/${1}" ]
-                       then
-                               echo "${D}/${1}"
-                               return 0
-                       fi
-               done
-
-               shift
-       done
-
-       return 1
-}
-
-runcommandinroot ()
-{
-       C=$(findcommandinroot "${1}" "${2}")
-       ROOT="${1}"
-
-       shift
-       shift
-
-       [ -n "${C}" ] && chroot "${ROOT}" "${C}" "${@}"
-}
-
-root="${1}"
-package="${2}"
-
-version=$(runcommandinroot "${root}" dpkg-query -W --showformat='${Version}' "${package}" 2>/dev/null) || version=""
-
-if [ -z "${version}" ]
-then
-       echo >&2 "${0}: package '${package}' is not installed"
-       exit 0
-fi
-
-runcommandinroot "${root}" dpkg-reconfigure -fnoninteractive --no-reload "${package}"
-
-exit 0