#!/bin/sh

# colour for output
txtbld=$(tput bold)
txtund=${txtbld}$(tput sgr 0 1)
txtred=$(tput setaf 1)
txtyellow=$(tput setaf 3)
txtblue=$(tput setaf 4)
txtreset=$(tput sgr0)

echo "Starting RSM installer..."
echo    "${txtbld}${txtblue}######################   RSM Installer  ########################${txtreset}"
echo    ""
echo    "Welcome to the RSM installer. The installer will install\
 the RSM application packages on the the card." | fold -s

echo "${txtbld}${txtblue}Updating the RSM Installer${txtreset}"
pacman -Sy --noconfirm rsm-setup
 
exec /usr/bin/rsm-install

echo "${txtbld}${txtblue}You did good kid, you did real good.${txtreset}"

