08f385e20f
modified: install/openwrt.sh modified: install/pacman.sh modified: install/tree_cpy.sh modified: usr/bin/aur modified: usr/bin/brc new file: usr/bin/idea modified: usr/bin/mountcrypt new file: usr/bin/regex_gen modified: usr/etc/pam.d/system-local-login modified: usr/etc/resolv.conf modified: usr/etc/systemd/resolved.conf modified: usr/etc/systemd/system/tcpd.service modified: usr/home/.bash_aliases modified: usr/home/.bashrc
16 lines
264 B
Bash
Executable File
16 lines
264 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
NAME+=$(dmesg | tail | grep -o sd[a-z] | tail -1)
|
|
NAME+=1
|
|
DEV=/dev/${NAME}
|
|
MNT_PT=/mnt/$NAME
|
|
BLOCK=crypt_${NAME}
|
|
|
|
echo "mount dev: $DEV at $MNT_PT"
|
|
cryptsetup luksOpen $DEV $BLOCK
|
|
mkdir $MNT_PT
|
|
mount $/dev/mapper/$BLOCK $MNT_PT
|
|
cd $MNT_PT
|
|
|
|
exit 0
|