#!/bin/sh # Installing packages (doing the real dist-upgrade) # gettext domain TEXTDOMAIN="lliurex-up" export TEXTDOMAIN COMMON_LIBRARY="/usr/share/lliurex-up/common-upgrade-vars.sh" if [ -r $COMMON_LIBRARY ] ; then . $COMMON_LIBRARY fi #gettext messages INFO_MESSAGE="$(gettext "Remove guest user")" # Methods _Remove_the_guest_user() { # Test if user is enabled #rc=0 #grep -q "allow-guest=false" /etc/lightdm/lightdm.conf || rc=1 #if [ $rc -eq 1 ] ; then # echo "allow-guest=false" >> /etc/lightdm/lightdm.conf #fi # For now this feature remains disabled until new news. # LliureX GVA needs this package working. echo "[ LliureX UP ] : Remove guest user disabled" } _info() { echo "$INFO_MESSAGE" } _migrate() { _Remove_the_guest_user } _usage() { echo "# Unknown argument" } _die() { echo "Error: $1" exit 1 } ACTION="$1" case "$ACTION" in migrate) _migrate ;; info) _info ;; *) _usage ;; esac