diff --git a/bashrc b/bashrc index 3b317cb6..22194b92 100644 --- a/bashrc +++ b/bashrc @@ -769,6 +769,13 @@ ssh-regen-host-keys () { ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key } +# This function erases Master Boot Record from device +# Note: this is dangerous so this function will echo the command +# instad of running it! +erase-mbr() { + echo dd if=/dev/zero of=$1 bs=512 count=2 +} + # .custom if [ -f ~/.custom ]; then source ~/.custom diff --git a/zshrc b/zshrc index 857550e4..7c0bfd86 100644 --- a/zshrc +++ b/zshrc @@ -742,6 +742,13 @@ ssh-regen-host-keys () { ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key } +# This function erases Master Boot Record from device +# Note: this is dangerous so this function will echo the command +# instad of running it! +erase-mbr() { + echo dd if=/dev/zero of=$1 bs=512 count=2 +} + # Source files for miscannellious modifications. # .custom