#!/bin/sh
# Copyright (C) 2013 Jolla Oy
# Contact: Pekka Lundstrom  <pekka.lundstrom@jollamobile.com>
#
# Starts autologin for defatult user

DEF_UID=$(grep "^UID_MIN" /etc/login.defs |  tr -s " " | cut -d " " -f2)
echo "Starting autologin for $DEF_UID"
systemctl start autologin\@${DEF_UID}.service
echo "autologin\@${DEF_UID}.service started"


