From: Nicolas Boisselier Date: Tue, 9 Jan 2018 22:06:42 +0000 (+0000) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=20083e4d2863b2578b6e1321ff96330e346a4c74;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 4e71e329..07c83bf6 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -175,7 +175,7 @@ shell_functions_csv() { local i for i in $(shell_functions); do printf '%s\t' "$i" - type "$i" | tail -n +2 | tr -d "\n" | sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' + type "$i" | tail -n +2 | tr -d "\n" | sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/}$/;}/' printf '\n' done } @@ -664,7 +664,7 @@ urldecode() { printf '%b\n' "${url_encoded//%/\\x}" } -boot_loader() { +mbr_loader() { local mbr=`dd if=/dev/sda bs=446 count=1 2> /dev/null| strings -a` case "$mbr" in