packages/utils/lilo/files/mkbootable
nico 9afb7b6db7 update lilo to latest version (missing source), move files in ./files
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4907 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-04 17:09:08 +00:00

16 lines
410 B
Bash
Executable File

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
LOOPDEV="/dev/loop1"
mkdir mount
cp bin/openwrt-x86-2.6-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.7.2/lilo -C package/lilo/bdlilo.conf
sudo umount mount
echo releasing $LOOPDEV
sudo losetup -d $LOOPDEV
rm -r -f mount