[Pkg-ltsp-devel] Bug#704830: ltsp-client-core: the init script should provide a hook for code snippets
Wolfgang Schweer
w.schweer at gmx.de
Sat Apr 6 13:58:09 UTC 2013
Package: ltsp-client-core
Version: 5.4.2-6
Severity: wishlist
Hi,
to fetch config values out of LDAP and to add them to those provided on
the kernel command line or in lts.conf, code has to be executed inside
of the init script. While it is possible to modify the init script in
such a way using a script in init-ltsp.d [1], it would be better to have a
hook inside of the initscript serching for code in some directory, say
ltsp-client-core.d
[1]
# Save as /usr/share/ltsp/init-ltsp.d/70-edu-client-core
# This snippet modifies /etc/init.d/ltsp-client-core on-the-fly.
#
# Get config stored in LDAP for Debian Edu ltsp clients (thin and fat).
#
sed -i '/"Starting\ LTSP\ client..."/ a\
/usr/share/ltsp/get-ldap-ltsp-config\
cat /var/cache/ltsp/ltsp_config_edu >> /var/cache/ltsp/ltsp_config_env\
' /etc/init.d/ltsp-client-core
Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20130406/c47ffc27/attachment.pgp>
More information about the Pkg-ltsp-devel
mailing list