#!/bin/sh
# SPDX-License-Identifier: MIT
# Copyright (C) 2026 pake <pake@fedora.tw> - https://pomelo-os.org
# useradd shim (docs/LOGIN.md): the Settings user page runs `useradd -m -s /bin/bash -c FULL NAME` through pkexec; the account is locked until chpasswd.
FULL=; while [ $# -gt 1 ]; do case "$1" in -c) FULL=$2; shift 2;; -s|-G|-g|-u|-d) shift 2;; *) shift;; esac; done
exec pomelo-accounts add "$1" -f "${FULL:-$1}" -L
