Commit 385884a8 authored by iv's avatar iv

app-shell: add nayuos-toolbox with a script for mounting encrypted devices

parent bed70259
if [ -z $1 ] ; then
echo "Please, give a device as parameter, ex: /dev/sda"
exit 1
fi
if [ ! -d /media/removable/key ] ; then
echo "New dir at /media/removable/key"
mkdir /media/removable/key
fi
echo "Mounting $1 on /media/removable/key"
cryptsetup luksOpen $1 key
mount /dev/mapper/key /media/removable/key
\ No newline at end of file
EAPI="4"
DESCRIPTION="Set up helpful scripts to improve NayuOS experience"
HOMEPAGE="https://www.nayuos.com/"
S="${WORKDIR}"
LICENSE="GPL"
SLOT="0"
KEYWORDS="*"
IUSE=""
src_install()
{
insinto /usr/local/bin
doins ${FILESDIR}/encmount
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment