Skip to content

Commit

Permalink
傻瓜式一键DD
Browse files Browse the repository at this point in the history
  • Loading branch information
veip007 authored Sep 9, 2019
1 parent 05a4ae9 commit e58d391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dd.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

MAINIP=$(ip route get 1 | awk '{print $NF;exit}')
GATEWAYIP=$(ip route | grep default | awk '{print $3}')
SUBNET=$(ip -o -f inet addr show | awk '/scope global/{sub(/[^.]+\//,"0/",$4);print $4}' | head -1 | awk -F '/' '{print $2}')
Expand Down

0 comments on commit e58d391

Please sign in to comment.