tuto3: add raz-my-dd helper script
This commit is contained in:
parent
71669a2f7a
commit
f9f2ce4cd2
1 changed files with 10 additions and 0 deletions
10
tuto3.yml
10
tuto3.yml
|
@ -467,6 +467,16 @@ files:
|
||||||
nsenter -t $(pgrep dhcpcd) -a dhcpcd
|
nsenter -t $(pgrep dhcpcd) -a dhcpcd
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
- path: /usr/sbin/raz-my-dd
|
||||||
|
contents: |
|
||||||
|
#!/bin/sh
|
||||||
|
echo -n "Are you sure? Press Enter to continue... "
|
||||||
|
read -s
|
||||||
|
dd if=/dev/zero of=/dev/sda size=10 bs=4096
|
||||||
|
sync
|
||||||
|
reboot -f
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
- path: /usr/sbin/join-p0m
|
- path: /usr/sbin/join-p0m
|
||||||
contents: |
|
contents: |
|
||||||
[ -f "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it it you continue."
|
[ -f "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it it you continue."
|
||||||
|
|
Reference in a new issue