packages/utils/lilo/files/mkbootable
florian 60963e55a3 Update lilo to 22.8 (#3685)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11744 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-07 15:19:23 +00:00

16 lines
404 B
Bash
Executable File

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
LOOPDEV="/dev/loop1"
mkdir mount
cp bin/openwrt-x86-ext2.img bin/boot.img
sudo losetup $LOOPDEV bin/boot.img
sudo mount $LOOPDEV mount
sudo cp build_i386/linux/arch/i386/boot/bzImage mount/vmlinuz
sudo mkdir mount/boot
sudo build_i386/lilo-22.8/lilo -C package/lilo/bdlilo.conf
sudo umount mount
echo releasing $LOOPDEV
sudo losetup -d $LOOPDEV
rm -r -f mount