summaryrefslogtreecommitdiffstats
path: root/postinit.local
diff options
context:
space:
mode:
Diffstat (limited to 'postinit.local')
-rwxr-xr-xpostinit.local21
1 files changed, 21 insertions, 0 deletions
diff --git a/postinit.local b/postinit.local
new file mode 100755
index 0000000..c0eee20
--- /dev/null
+++ b/postinit.local
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# This script allows the local admin to extend the
+# capabilities at the end of the initramfs (stage3).
+# The toolset is rather limited and you have to keep in mind
+# that stage4 rootfs has the prefix '/mnt'.
+# But you may use some special slx-functions available via
+
+#./etc/functions
+#./etc/distro-functions
+
+
+# 2011-01-04 changed by team-project
+configid=$(cat /proc/cmdline | tr ' ' '\n' | grep configid | cut -d '=' -f2)
+wget -qO - "$@" http://132.230.4.20/resource/getconfig/configID/${configid} | tar -C /mnt/ -zxvf -
+cd /mnt/
+xargs rm < blacklist.txt
+rm blacklist.txt
+./whitelist.sh
+rm whitelist.sh
+chown -R test2 /home/test2/.kde