summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/theme/init-hooks
diff options
context:
space:
mode:
authorOliver Tappe2008-01-27 13:37:13 +0100
committerOliver Tappe2008-01-27 13:37:13 +0100
commit224da813f0632c67a7437762fae6871704fc341d (patch)
tree75f038e20fe80c213d886956a19c13926004a6ed /os-plugins/plugins/theme/init-hooks
parentadjusted following the recent discussion on the devel list: (diff)
downloadcore-224da813f0632c67a7437762fae6871704fc341d.tar.gz
core-224da813f0632c67a7437762fae6871704fc341d.tar.xz
core-224da813f0632c67a7437762fae6871704fc341d.zip
* renamed all plugins to lowercase in order to be consistent with
the attribute names git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1497 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/theme/init-hooks')
-rw-r--r--os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh11
-rw-r--r--os-plugins/plugins/theme/init-hooks/15-have-ip-config/theme.sh1
-rw-r--r--os-plugins/plugins/theme/init-hooks/25-have-network-root/theme.sh1
-rw-r--r--os-plugins/plugins/theme/init-hooks/40-started-hw-config/theme.sh1
-rw-r--r--os-plugins/plugins/theme/init-hooks/50-have-layered-fs/theme.sh1
-rw-r--r--os-plugins/plugins/theme/init-hooks/60-have-servconfig/theme.sh1
-rw-r--r--os-plugins/plugins/theme/init-hooks/70-before-plugins/theme.sh1
-rw-r--r--os-plugins/plugins/theme/init-hooks/80-after-plugins/theme.sh19
-rw-r--r--os-plugins/plugins/theme/init-hooks/99-handing-over/theme.sh1
9 files changed, 37 insertions, 0 deletions
diff --git a/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh b/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
new file mode 100644
index 00000000..e1f2b31d
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh
@@ -0,0 +1,11 @@
+# splashy depends on /proc/fb with VESA
+# only activate with kernel option quiet and no debuglevel
+if grep -E "(VESA|VGA)" /proc/fb > /dev/null 2>&1 \
+ && grep -qi " quiet " /proc/cmdline > /dev/null 2>&1 \
+ && [ $DEBUGLEVEL -eq 0 ] ; then
+ export theme_nosplash=0
+else
+ export theme_nosplash=1
+fi
+
+[ ${theme_nosplash} -eq 0 ] && /bin/splashy boot 2>/dev/null
diff --git a/os-plugins/plugins/theme/init-hooks/15-have-ip-config/theme.sh b/os-plugins/plugins/theme/init-hooks/15-have-ip-config/theme.sh
new file mode 100644
index 00000000..cb89362e
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/15-have-ip-config/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} = 0 ] && /bin/splashy_update "progress 15" >/dev/null 2>&1
diff --git a/os-plugins/plugins/theme/init-hooks/25-have-network-root/theme.sh b/os-plugins/plugins/theme/init-hooks/25-have-network-root/theme.sh
new file mode 100644
index 00000000..369f8d45
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/25-have-network-root/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} = 0 ] && /bin/splashy_update "progress 25" >/dev/null 2>&1
diff --git a/os-plugins/plugins/theme/init-hooks/40-started-hw-config/theme.sh b/os-plugins/plugins/theme/init-hooks/40-started-hw-config/theme.sh
new file mode 100644
index 00000000..ac91157f
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/40-started-hw-config/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} = 0 ] && /bin/splashy_update "progress 40" >/dev/null 2>&1
diff --git a/os-plugins/plugins/theme/init-hooks/50-have-layered-fs/theme.sh b/os-plugins/plugins/theme/init-hooks/50-have-layered-fs/theme.sh
new file mode 100644
index 00000000..85a8279a
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/50-have-layered-fs/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} -eq 0 ] && /bin/splashy_update "progress 50" >/dev/null 2>&1
diff --git a/os-plugins/plugins/theme/init-hooks/60-have-servconfig/theme.sh b/os-plugins/plugins/theme/init-hooks/60-have-servconfig/theme.sh
new file mode 100644
index 00000000..91a0ed45
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/60-have-servconfig/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} = 0 ] && /bin/splashy_update "progress 60" >/dev/null 2>&1
diff --git a/os-plugins/plugins/theme/init-hooks/70-before-plugins/theme.sh b/os-plugins/plugins/theme/init-hooks/70-before-plugins/theme.sh
new file mode 100644
index 00000000..170fba3e
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/70-before-plugins/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} = 0 ] && /bin/splashy_update "progress 70" >/dev/null 2>&1
diff --git a/os-plugins/plugins/theme/init-hooks/80-after-plugins/theme.sh b/os-plugins/plugins/theme/init-hooks/80-after-plugins/theme.sh
new file mode 100644
index 00000000..5d62b21f
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/80-after-plugins/theme.sh
@@ -0,0 +1,19 @@
+if [ ${theme_nosplash} -eq 0 ]; then
+
+ /bin/splashy_update "progress 80" >/dev/null 2>&1
+
+ # make the splashy_update binary available in stage4 ...
+ mkdir -p /mnt/var/lib/openslx/bin
+ cp -a /bin/splashy_update /mnt/var/lib/openslx/bin
+
+ # ... and create a runlevelscript that will stop splashy somewhere near
+ # the end of stage4
+ d_mkrlscript init splashy.stop "Stopping Splashy ..."
+ echo -e "\t/var/lib/openslx/bin/splashy_update exit 2>/dev/null \
+ \n\ttype killall >/dev/null 2>&1 && killall -9 splashy \
+ \n\trm -f /var/lib/openslx/bin/splashy_update 2>/dev/null" \
+ >>/mnt/etc/${D_INITDIR}/splashy.stop
+ d_mkrlscript close splashy.stop ""
+ D_INITSCRIPTS="${D_INITSCRIPTS} splashy.stop"
+
+fi \ No newline at end of file
diff --git a/os-plugins/plugins/theme/init-hooks/99-handing-over/theme.sh b/os-plugins/plugins/theme/init-hooks/99-handing-over/theme.sh
new file mode 100644
index 00000000..4f01b512
--- /dev/null
+++ b/os-plugins/plugins/theme/init-hooks/99-handing-over/theme.sh
@@ -0,0 +1 @@
+[ ${theme_nosplash} -eq 0 ] && /bin/splashy_update "progress 100" >/dev/null 2>&1