#!/bin/bash

C1=C
C2=("USER LOGIN SHELL")

function login_shell {
    specify_user
    [ -z "${INPUT}" ] && return

    yesnobox "Do you want conmen to be a login shell for ${USR} ?"
    if [ "${YNRETVAL}" = "0" ]; then
	backup_conf /etc/passwd
	grep -q /usr/bin/conmen /etc/shells || \
	echo "/usr/bin/conmen" >> /etc/shells
	chsh -s /usr/bin/conmen ${USR}
	msgbox "If you want to undo the changes then run
\"chsh -s <previous shell> ${USR}\"\n"
    fi
}
