summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael pereira2011-03-11 00:47:06 +0100
committermichael pereira2011-03-11 00:47:06 +0100
commit5925d100873559a85be17c9f0c0f2f11236125a1 (patch)
tree033172bc1d51b16d9e7c5120985aec97c9d8b668
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-5925d100873559a85be17c9f0c0f2f11236125a1.tar.gz
pbs2-5925d100873559a85be17c9f0c0f2f11236125a1.tar.xz
pbs2-5925d100873559a85be17c9f0c0f2f11236125a1.zip
postinit.local geaendert
-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