summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 00:18:40 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 00:18:40 +0100
commitc7965bfd207b8ae3f4f563f6eceec00734f7bafc (patch)
treef02237243476ae031cf3f21029ef048ae3b5e039 /config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
parent7ca499d0effeec3119587f68bdd5e33e97367c1d (diff)
downloadkanotix-c7965bfd207b8ae3f4f563f6eceec00734f7bafc.zip
kanotix-c7965bfd207b8ae3f4f563f6eceec00734f7bafc.tar.gz
pcidetect + gfxoverlay
Diffstat (limited to 'config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay')
-rwxr-xr-xconfig/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
new file mode 100755
index 0000000..d648beb
--- /dev/null
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -e /etc/gfxoverlay ]; then
+ overlay="$(echo /root/live/image/gfxoverlay/$(cat /etc/gfxoverlay).*)"
+ if [ -f "$overlay" ]; then
+ #overlay_dev="$(losetup -f)"
+ #losetup "$overlay_dev" "$overlay"
+ mkdir -p /live/gfxoverlay /root/live/gfxoverlay
+ mount -o loop "$overlay" /live/gfxoverlay
+ mount -o remount,add:1:/live/gfxoverlay /root
+ mount -n -o move /live/gfxoverlay /root/live/gfxoverlay
+ fi
+fi
+