diff options
author | Gordon GECOS <u@adam> | 2020-11-01 17:24:33 -0500 |
---|---|---|
committer | Gordon GECOS <u@adam> | 2020-11-01 17:24:33 -0500 |
commit | 128fa6834d422bcf195436468927e57f332fd97d (patch) | |
tree | de3bb4853f6ae98b846e006f4533559efdebc67e | |
parent | 3c23eac02d98fa8ccd27d2e8b19fc81060a0c52c (diff) |
rename usb.sh -> usb
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | src/parted-usb.sh | 4 | ||||
-rwxr-xr-x | src/usb (renamed from src/usb.sh) | 0 |
3 files changed, 4 insertions, 2 deletions
@@ -48,7 +48,7 @@ src_bin_programs = xorriso-usb.sh btrfs-functions.sh btrfs-receive-root.sh | |||
48 | btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ | 48 | btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ |
49 | dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ | 49 | dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ |
50 | selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ | 50 | selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ |
51 | kiki-import-stdin store-child-permanently git-ll-remote \ | 51 | kiki-import-stdin store-child-permanently git-ll-remote usb \ |
52 | hostname.cryptonomic.net ${dyndns_progs} | 52 | hostname.cryptonomic.net ${dyndns_progs} |
53 | 53 | ||
54 | bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils} | 54 | bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils} |
diff --git a/src/parted-usb.sh b/src/parted-usb.sh index 05b776c..f8855d3 100755 --- a/src/parted-usb.sh +++ b/src/parted-usb.sh | |||
@@ -353,12 +353,14 @@ fi | |||
353 | 353 | ||
354 | default_target=boot-disk.img | 354 | default_target=boot-disk.img |
355 | 355 | ||
356 | USB=$(which usb || echo ./src/usb) | ||
357 | |||
356 | if [ "$1" ] | 358 | if [ "$1" ] |
357 | then | 359 | then |
358 | if [ "$1" = USB ] | 360 | if [ "$1" = USB ] |
359 | then | 361 | then |
360 | [ "$DO_BUILD" ] && arg= || arg=-n | 362 | [ "$DO_BUILD" ] && arg= || arg=-n |
361 | target=$(./src/usb.sh $arg) || exit 1 | 363 | target=$($USB $arg) || exit 1 |
362 | elif [ -f "$1" ] | 364 | elif [ -f "$1" ] |
363 | then | 365 | then |
364 | case "$1" in | 366 | case "$1" in |