diff options
author | Jonathan Bauer | 2011-12-06 17:23:02 +0100 |
---|---|---|
committer | Jonathan Bauer | 2011-12-06 17:47:02 +0100 |
commit | 5d97f33775e539da678d2c893c68520ef3c72618 (patch) | |
tree | 8f0a9174c7f8b22bbcd6eb9c9cd1f8ca8b070d96 /src/os-plugins/plugins/eduroam/XX_eduroam.sh | |
parent | Merge branch 'master' of openslx.org:openslx/core (diff) | |
download | core-5d97f33775e539da678d2c893c68520ef3c72618.tar.gz core-5d97f33775e539da678d2c893c68520ef3c72618.tar.xz core-5d97f33775e539da678d2c893c68520ef3c72618.zip |
eduroam plugin base (working for kdm)
Diffstat (limited to 'src/os-plugins/plugins/eduroam/XX_eduroam.sh')
-rw-r--r-- | src/os-plugins/plugins/eduroam/XX_eduroam.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/eduroam/XX_eduroam.sh b/src/os-plugins/plugins/eduroam/XX_eduroam.sh new file mode 100644 index 00000000..fe8bcef6 --- /dev/null +++ b/src/os-plugins/plugins/eduroam/XX_eduroam.sh @@ -0,0 +1,40 @@ +# Copyright (c) 2007..2008 - RZ Uni Freiburg +# Copyright (c) 2008 - 2009 OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# stage3 part of 'eduroam' plugin +# +# script is included from init via the "." load function - thus it has all +# variables and functions available + +if [ -e /initramfs/plugin-conf/eduroam.conf ]; then + . /initramfs/plugin-conf/eduroam.conf + if [ $eduroam_active -ne 0 ]; then + [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'eduroam' plugin..."; + + # copy files + + cp /mnt/opt/openslx/plugin-repo/eduroam/files/lib/security/pam_script.so \ + /mnt/lib/security + cp /mnt/opt/openslx/plugin-repo/eduroam/files/etc/pam_radius_auth.conf \ + /mnt/etc + cp /mnt/opt/openslx/plugin-repo/eduroam/files/etc/pam.d/radius-auth \ + /mnt/etc/pam.d + cp -r /mnt/opt/openslx/plugin-repo/eduroam/files/usr/share \ + /mnt/usr/share + + # activate eduroam in kdm + # TODO: for other desktop managers + sed 's/@include common-auth/@include radius-auth/g' -i /mnt/etc/pam.d/kdm + + [ $DEBUGLEVEL -gt 0 ] && echo "done with the 'eduroam' plugin..."; + fi +fi + |