diff options
Diffstat (limited to 'os-plugins/plugins')
| -rw-r--r-- | os-plugins/plugins/kiosk/XX_kiosk.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os-plugins/plugins/kiosk/XX_kiosk.sh b/os-plugins/plugins/kiosk/XX_kiosk.sh index 4e3bc91f..c7e275ad 100644 --- a/os-plugins/plugins/kiosk/XX_kiosk.sh +++ b/os-plugins/plugins/kiosk/XX_kiosk.sh @@ -25,6 +25,12 @@ if [ -e /initramfs/plugin-conf/kiosk.conf ]; then profile_path="/etc/opt/openslx/plugins/kiosk/profiles/" + # avoid ldap conflicts - part I + # hide nsswitch.conf + if [ -e /mnt/etc/nsswitch.conf ]; then + mv /mnt/etc/nsswitch.conf /mnt/etc/nsswitch.conf.bak + fi + if [ -e /mnt/$profile_path/$kiosk_profile/ ]; then # create new user chroot /mnt useradd -s /bin/bash -k $profile_path/$kiosk_profile/ -m kiosk @@ -32,6 +38,12 @@ if [ -e /initramfs/plugin-conf/kiosk.conf ]; then else chroot /mnt useradd -s /bin/bash -k $profile_path/plain/ -m kiosk fi + + # avoid ldap conflicts - part II + # restore old nsswitch setup + if [ -e /mnt/etc/nsswitch.conf.bak ]; then + mv /mnt/etc/nsswitch.conf.bak /mnt/etc/nsswitch.conf + fi # setup custom rungetty mkdir -p /mnt/root/bin |
