Added flashiso func

This commit is contained in:
Hannes
2026-05-15 19:13:49 +02:00
parent d02587437d
commit 590cf94393
+15
View File
@@ -237,6 +237,21 @@ if test -e /usr/bin/sudo-rs
alias sudo=sudo-rs
end
if test -e /usr/bin/dd
function flashiso --description "Flash an ISO to a target drive with dd"
if test (count $argv) -ne 2
echo "Usage: flashiso {ISO} {target drive}"
echo "Example: flashiso ubuntu-25.10-desktop-amd64.iso /dev/sdb"
return 1
end
set iso $argv[1]
set drive $argv[2]
sudo dd if=$iso of=$drive bs=4M status=progress oflag=sync
end
end
#### SOURCE of bash
function smart_source