summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon GECOS <u@adam>2020-11-01 17:24:33 -0500
committerGordon GECOS <u@adam>2020-11-01 17:24:33 -0500
commit128fa6834d422bcf195436468927e57f332fd97d (patch)
treede3bb4853f6ae98b846e006f4533559efdebc67e
parent3c23eac02d98fa8ccd27d2e8b19fc81060a0c52c (diff)
rename usb.sh -> usb
-rw-r--r--Makefile2
-rwxr-xr-xsrc/parted-usb.sh4
-rwxr-xr-xsrc/usb (renamed from src/usb.sh)0
3 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 453b315..e63d940 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ src_bin_programs = xorriso-usb.sh btrfs-functions.sh btrfs-receive-root.sh
48btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ 48btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \
49dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ 49dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \
50selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ 50selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \
51kiki-import-stdin store-child-permanently git-ll-remote \ 51kiki-import-stdin store-child-permanently git-ll-remote usb \
52hostname.cryptonomic.net ${dyndns_progs} 52hostname.cryptonomic.net ${dyndns_progs}
53 53
54bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils} 54bin_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
354default_target=boot-disk.img 354default_target=boot-disk.img
355 355
356USB=$(which usb || echo ./src/usb)
357
356if [ "$1" ] 358if [ "$1" ]
357then 359then
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
diff --git a/src/usb.sh b/src/usb
index a8fd5fb..a8fd5fb 100755
--- a/src/usb.sh
+++ b/src/usb