+ nas mount

This commit is contained in:
committer
2024-05-21 07:00:18 -05:00
parent 26b240729c
commit b73e5c7fe8
3 changed files with 76 additions and 13 deletions

View File

@@ -16,6 +16,9 @@ if [ $# -lt 1 ]; then
fi
operation=$1
user=${USER}
clone_trg=${CLONE_TARGET_DIR}
options_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${HOSTNAME}/options.sh
options_trg=/tmp/options.sh
rm -rf ${options_trg}
@@ -27,8 +30,8 @@ if [ -z "${OPTIONS_LOADED}" ]; then
exit 1
fi
user=${USER}
clone_trg=${CLONE_TARGET_DIR}
secrets_cred_path=/home/${user}/syncDir/secrets/toBeSources/cred.sh
source ${secrets_cred_path}
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
@@ -169,6 +172,17 @@ if [ ${operation} == "dots" ] ; then
file_path=/etc
deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown
# mounts
file_name=nas.mount
file_path=/etc/systemd/system
deploy_file "${dots_trg}/systemd/${file_name}" "${file_path}/${file_name}" no_chown
sed -i 's|[USERNAME]|klevstul|g' "${file_path}/${file_name}"
sed -i 's|[PASSWORD]|${LILLESORTEBOKS}|g' "${file_path}/${file_name}"
mount_target=/mnt/nas
mkdir -p ${mount_target}
# ----------
# printing
#
@@ -188,6 +202,43 @@ if [ ${operation} == "dots" ] ; then
#lpadmin -p Brother_HL-L2310D_series -D "Brother HL-L2310D_series" -E -v usb://Brother/HL-L2310D%20series?serial=E78096L7N181893 -m lsb/usr/cupsfilters/brother-HLL2310D-cups-en.ppd
#lpadmin -p Brother_QL-700 -D "Brother QL-700" -E -v usb://Brother/QL-700?serial=000L0Z530516 -m brother_ql700_printer_en.ppd
# EXAMPLE OF FILE MANIPULATION (from lnxPub's `cli/2103mjr/scr/80_urxvt.sh`)
# # -----
# # update .Xresources
# # -----
# file=$HOME/.Xresources
#
# # update font setting (so it's understandable by the extension)
# /tmp/99_key_value_modifier.sh URxvt.font xft:NotoSansMono-Light:size=12 : $file
#
# # enable the "resize-font" extension
# /tmp/99_comment_add_remove.sh remove ! Rxvt.perl-ext-common $file
# /tmp/99_key_value_modifier.sh Rxvt.perl-ext-common resize-font : $file
#
# # make the terminal's background transparent
# /tmp/99_comment_add_remove.sh remove '! ' 'URxvt\*inheritPixmap' $file
# /tmp/99_comment_add_remove.sh remove '! ' 'URxvt\*transparent' $file
# /tmp/99_comment_add_remove.sh remove '! ' 'URxvt\*shading' $file
# /tmp/99_key_value_modifier.sh 'URxvt\*shading' 30 : $file
# ----------
# programs
# ----------