post_install() {
# Add users
USER='manjaro'
echo "$USER" > /tmp/user
echo "123456" > /tmp/password
echo "root" > /tmp/rootpassword  
if [ ! -f /usr/bin/pico-wizard ]; then
    useradd -m -g users -G wheel,sys,audio,input,video,storage,lp,network,users,power,rfkill -p $(openssl passwd -6 $(cat /tmp/password)) \
    -s /bin/bash $(cat /tmp/user) 1> /dev/null 2>&1
fi
awk -i inplace -F: "BEGIN {OFS=FS;} \$1 == \"root\" {\$2=\"$(openssl passwd -6 $(cat /tmp/rootpassword))\"} 1" /etc/shadow 1> /dev/null 2>&1
rm /tmp/user /tmp/password /tmp/rootpassword
}
