diff options
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -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 |
