18 lines
351 B
Bash
18 lines
351 B
Bash
#!/bin/sh
|
|
|
|
if [ "$1" = menu ]; then
|
|
boot-menu-add-entry "$0" "Linux from usb" "$2"
|
|
exit
|
|
fi
|
|
|
|
path=/mnt/usb
|
|
global.bootm.image=${path}/zImage
|
|
initrd=${path}/initrd
|
|
|
|
if [ -f ${initrd} ]; then
|
|
global.bootm.initrd=${initrd}
|
|
global.linux.bootargs.base="console=ttyO0,115200n8 root=/dev/ram0"
|
|
else
|
|
global.linux.bootargs.base="console=ttyO0,115200n8"
|
|
fi
|