Update comments on ddusb-exclude.conf and regex in ddusb script

This commit is contained in:
Eric Torres 2019-03-08 19:44:05 -08:00
parent 188a7fd5da
commit 6aa5024811
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,4 @@
## File for excluding particular files from being written to # File for excluding block devices from being written to
## Write one device per line, shell-style globs are accepted i.e. /dev/sda? # Write one device per line, shell-style globs are accepted i.e. /dev/sda*
## Lines beginning with "#" and ";" are ignored # Brace expansion is not supported
# Lines beginning with "#" and ";" are ignored

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
"""Write an ISO image to a usb drive using dd.""" """Wrapper script for using dd to write to a USB drive."""
import argparse import argparse
import glob import glob
@ -8,7 +8,7 @@ import re
import subprocess import subprocess
# ========== Constants ========== # ========== Constants ==========
COMMENT_PATTERN = "[#;]" COMMENT_PATTERN = "^[#;]"
EXCLUDE_FILE = "/etc/helper-scripts/ddusb-exclude.conf" EXCLUDE_FILE = "/etc/helper-scripts/ddusb-exclude.conf"