X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=keyscript-off;h=bb63cb211a206b1b2029dbfaf7976496faaee0f8;hp=6aa5265167912ddcb8917293d06849f6e28e0cde;hb=8a6b446c7e336596af614c853e1c6177e55a7983;hpb=d46190aff6f5dc65bd39524e3937dc5765895b42 diff --git a/keyscript-off b/keyscript-off index 6aa5265..bb63cb2 100755 --- a/keyscript-off +++ b/keyscript-off @@ -21,9 +21,12 @@ if [[ $- != *i* ]]; then exec &>/var/log/keyscript-off.log echo "$0: starting. $(date)" fi - sed="sed --follow-symlinks" +if [[ $HOSTNAME == kw ]]; then + exit 0 +fi + if [[ $($sed -rn 's/^ID=(.*)/\1/p' /etc/os-release) == arch ]]; then if grep -q '^\s*FILES=' /etc/mkinitcpio.conf; then $sed -ri 's/^\s*FILES=/#\0/' /etc/mkinitcpio.conf # comment out @@ -39,5 +42,5 @@ fi # switch to easy or hard pass which is the same as luks f=/q/root/shadow/traci -[[ $HOSTNAME != tp ]] || usermod -p "$(cat $f)" iank +[[ $HOSTNAME != tpnew ]] || usermod -p "$(cat $f)" iank echo "$0: finished. $(date)"