summaryrefslogtreecommitdiff
path: root/ubiquity-hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:22 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:46:22 +0200
commit4a0b1ba4d428c623d14bae7f0db85c80abb0da0a (patch)
treede03aceffba0ce13f098d970cc89f806db7af5d7 /ubiquity-hooks
downloadlive-boot-4a0b1ba4d428c623d14bae7f0db85c80abb0da0a.tar.gz
live-boot-4a0b1ba4d428c623d14bae7f0db85c80abb0da0a.zip
Adding casper 1.59+debian-1.
Diffstat (limited to 'ubiquity-hooks')
-rwxr-xr-xubiquity-hooks/20xconfig11
-rwxr-xr-xubiquity-hooks/22gnome_panel_data8
-rwxr-xr-xubiquity-hooks/25modules8
-rwxr-xr-xubiquity-hooks/32gnome_power_manager6
4 files changed, 33 insertions, 0 deletions
diff --git a/ubiquity-hooks/20xconfig b/ubiquity-hooks/20xconfig
new file mode 100755
index 0000000..6f8becd
--- /dev/null
+++ b/ubiquity-hooks/20xconfig
@@ -0,0 +1,11 @@
+#! /bin/sh
+set -e
+
+if [ -f /etc/X11/xorg.conf ]; then
+ cp -a /etc/X11/xorg.conf /target/etc/X11/xorg.conf
+ # requires x11-common (>= 7.0.0-0ubuntu1)
+ mkdir -p /target/var/lib/x11
+ chroot /target md5sum /etc/X11/xorg.conf > /var/lib/x11/xorg.conf.md5sum
+fi
+
+exit 0
diff --git a/ubiquity-hooks/22gnome_panel_data b/ubiquity-hooks/22gnome_panel_data
new file mode 100755
index 0000000..2c1059f
--- /dev/null
+++ b/ubiquity-hooks/22gnome_panel_data
@@ -0,0 +1,8 @@
+#! /bin/sh
+set -e
+
+if laptop-detect; then
+ casper-reconfigure /target gnome-panel-data
+fi
+
+exit 0
diff --git a/ubiquity-hooks/25modules b/ubiquity-hooks/25modules
new file mode 100755
index 0000000..59a0d15
--- /dev/null
+++ b/ubiquity-hooks/25modules
@@ -0,0 +1,8 @@
+#! /bin/sh
+set -e
+
+if [ -f /etc/modules ]; then
+ cp -a /etc/modules /target/etc/modules
+fi
+
+exit 0
diff --git a/ubiquity-hooks/32gnome_power_manager b/ubiquity-hooks/32gnome_power_manager
new file mode 100755
index 0000000..213a917
--- /dev/null
+++ b/ubiquity-hooks/32gnome_power_manager
@@ -0,0 +1,6 @@
+#! /bin/sh
+set -e
+
+casper-reconfigure /target gnome-power-manager
+
+exit 0