From 8f2b9316d1b1787503349c394c57c674ab5da443 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 15 Feb 2016 16:08:16 -0500 Subject: Misc updates to multiple config files --- mkshrc | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'mkshrc') diff --git a/mkshrc b/mkshrc index 0ea8be6..15b76e2 100644 --- a/mkshrc +++ b/mkshrc @@ -162,6 +162,20 @@ debugstarttls() { # |_| |_|_|___/\___| |_| \__,_|_| |_|\___|\__|_|\___/|_| |_|___/ # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +# First argument is the interface on which to scan +ipv6_local_hosts() { +if ! [ -z $1 ] ; then + interface="$1" + ping6 -c 3 ff02::2%$interface \ + | grep 'bytes from' \ + | awk '{print $4}' \ + | sort \ + | uniq \ + | sed -e's/:$//' +else + echo "You need to specify an interface" +fi +} set_nocaps() { setxkbmap -option ctrl:nocaps } @@ -246,7 +260,7 @@ else # When we detach from it, kill the session tmux kill-session -t $session_id fi -fi +fi ' > $location && chmod +x $location && echo "Installed to: $location" } @@ -290,17 +304,17 @@ startup_zram() { } # Sometimes useful function for unmounting a chroot dir on Linux umount_recursive() { - case $1 in + case $1 in -h|--help|"") cat <<-EOF Specifiy the full path to the mountpoint - and this function will do it's best to + and this function will do it's best to unmount all child filesystems and the path specified Example: $0 /path/to/filesystem/with/lots/of/mountpoints Options: - -f|--force + -f|--force EOF ;; -f|--force) @@ -539,7 +553,7 @@ export CA_CERT="/srv/ssl/root.pem" export CA_KEY="/srv/ssl/root.key" -# Load our system profile +# Load our system profile . /etc/profile # Load pre config -- cgit v1.2.3