a936f887e1
SVN-Revision: 11744
16 lines
404 B
Bash
Executable File
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
|