[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704830: ltsp-client-core: the init script should provide a hook for code snippets

Package: ltsp-client-core
Version: 5.4.2-6
Severity: wishlist


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 

# 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\
        cat /var/cache/ltsp/ltsp_config_edu >> /var/cache/ltsp/ltsp_config_env\
        ' /etc/init.d/ltsp-client-core


Attachment: signature.asc
Description: Digital signature

Reply to: