Update comments on ddusb-exclude.conf and regex in ddusb script
This commit is contained in:
parent
188a7fd5da
commit
6aa5024811
@ -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
|
||||||
|
4
ddusb.py
4
ddusb.py
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user