summaryrefslogtreecommitdiff
path: root/scripts/01-patch.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:21 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:21 +0200
commitfb35af8aa207ef5377022028d9e2b497445fb349 (patch)
treee928737e9e000d1f2509395f58f04465c17794c5 /scripts/01-patch.sh
parent18e4f460bf1c115c62ea9aebb56d75d486322531 (diff)
downloadvyos-live-build-fb35af8aa207ef5377022028d9e2b497445fb349.tar.gz
vyos-live-build-fb35af8aa207ef5377022028d9e2b497445fb349.zip
Adding live-package 0.99.3-1.
Diffstat (limited to 'scripts/01-patch.sh')
-rw-r--r--scripts/01-patch.sh91
1 files changed, 0 insertions, 91 deletions
diff --git a/scripts/01-patch.sh b/scripts/01-patch.sh
deleted file mode 100644
index c990032d2..000000000
--- a/scripts/01-patch.sh
+++ /dev/null
@@ -1,91 +0,0 @@
-# scripts/01-patches.sh
-
-Patch_chroot ()
-{
- # Some maintainer scripts can detect if they are in a chrooted system.
- # Therefore, we create the corresponding file.
-
- case "${1}" in
- apply)
- # Create chroot file
- echo "live" > "${LIVE_CHROOT}"/etc/debian_chroot
- ;;
-
- deapply)
- # Remove chroot file
- rm -f "${LIVE_CHROOT}"/etc/debian_chroot
- ;;
- esac
-}
-
-Patch_network ()
-{
- # Packages which are manually installed inside the chroot are installed
- # from the network. Therefore, we need to be able to resolv hosts.
-
- case "${1}" in
- apply)
- # Save host lookup table
- if [ -f "${LIVE_CHROOT}"/etc/hosts ]
- then
- cp "${LIVE_CHROOT}"/etc/hosts \
- "${LIVE_CHROOT}"/etc/hosts.orig
- fi
-
- # Save resolver configuration
- if [ -f "${LIVE_CHROOT}"/etc/resolv.conf ]
- then
- cp "${LIVE_CHROOT}"/etc/resolv.conf \
- "${LIVE_CHROOT}"/etc/resolv.conf.orig
- fi
-
- # Copy host lookup table
- if [ -f /etc/hosts ]
- then
- cp /etc/hosts "${LIVE_CHROOT}"/etc/hosts
- fi
-
- # Copy resolver configuration
- if [ -f /etc/resolv.conf ]
- then
- cp /etc/resolv.conf \
- "${LIVE_CHROOT}"/etc/resolv.conf
- fi
- ;;
-
- deapply)
- # Restore host lookup table
- if [ -f "${LIVE_CHROOT}"/etc/hosts.orig ]
- then
- mv "${LIVE_CHROOT}"/etc/hosts.orig \
- "${LIVE_CHROOT}"/etc/hosts
- fi
-
- # Restore resolver configuration
- if [ -f "${LIVE_CHROOT}"/etc/resolv.conf.orig ]
- then
- mv "${LIVE_CHROOT}"/etc/resolv.conf.orig \
- "${LIVE_CHROOT}"/etc/resolv.conf
- fi
- ;;
- esac
-}
-
-Patch_linuximage ()
-{
- # The linux-image package asks interactively for initial ramdisk
- # creation. Therefore, we preconfigure /etc/kernel-img.conf.
-
- case "${1}" in
- apply)
- # Write configuration option
- echo "do_initrd = Yes" >> \
- "${LIVE_CHROOT}"/etc/kernel-img.conf
- ;;
-
- deapply)
- # Remove configuration file
- rm -f "${LIVE_CHROOT}"/etc/kernel-img.conf
- ;;
- esac
-}