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
13 lines
276 B
Bash
Executable File
13 lines
276 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
USR_DIR=${1:-"no_dir"}
|
|
[[ $USR_DIR == "no_dir" ]] && \
|
|
echo "usage $0 usr_dir" && \
|
|
exit 1
|
|
USR_DIR=$(realpath $USR_DIR)
|
|
|
|
#uses ssymbolic link otherwise crossdevice troubles
|
|
cp -s -p -r -f -t / $USR_DIR/.
|
|
|
|
sudo chown root:svr /etc /var /run /dev /usr /sys /
|