Added flashiso func
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user