bashrc & zshrc: Function to erase mbr (or echo it)

Closes #41
This commit is contained in:
Mikaela Suomalainen 2014-07-30 20:40:44 +03:00
parent 2bddcb6495
commit 00f0b6b146
2 changed files with 14 additions and 0 deletions

7
bashrc
View File

@ -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

7
zshrc
View File

@ -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