mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-06 04:42:16 +03:00
Added install script
This commit is contained in:
parent
52125cd07f
commit
97258c43f5
19
qloader2-install
Executable file
19
qloader2-install
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# We take 1 argument, the device to use.
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <device>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Variables.
|
||||
DEVICE="$1"
|
||||
MBR="$(mktemp)"
|
||||
QLOADER2="qloader2.bin"
|
||||
|
||||
# Copy the loader to the device.
|
||||
dd if="$DEVICE" of="$MBR" bs=1 count=64 skip=446
|
||||
dd if="$QLOADER2" of="$DEVICE" conv=notrunc
|
||||
dd if="$MBR" of="$DEVICE" conv=notrunc bs=1 count=64 seek=446
|
Loading…
Reference in New Issue
Block a user