This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
if [ "$(id -u)" != "0" ]; then | |
echo "Sorry, you need to be root to do that." | |
exit 1 | |
fi | |
if [ -b "$1" ]; then | |
DEVICE="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import argparse | |
import hashlib | |
import os | |
import re | |
import shutil | |
import sys |