Atmega8 with Arduino UNO as ISP???

Hi,

I want to use the Arduino UNO board to programm a Atmega8 with 1MHZ internal oscillator.

I already did this with an Attiny84 (16MHZ external oscillator).
I select the attiny84 from the boards menu.
I set in the options Arduino as ISP
then I burn the bootloader
then i upload with programmer and everything works.

now my question is.
what do i have to add to the boards.txt to get this working for an atmega8 with the internal 1MHz oscillator?

thanks an best regards.

This should work:
Select Arduino NG or older with Atmega8 as the board type.
In boards.txt, set the lower 4 bits of the lowfuse byte to 0001.
"The default setting of CKSEL3..0 results in internal RC Oscillator @ 1MHz. See Table 2 on page 26 for details"

Set the clock frequency line to 1000000.

See below for the 2 lines:

##############################################################

atmega8.name=Arduino NG or older w/ ATmega8

atmega8.upload.protocol=arduino
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200

atmega8.bootloader.low_fuses=0xdf <<< 0xd1
atmega8.bootloader.high_fuses=0xca
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT-prod-firmware-2009-11-07.hex
atmega8.bootloader.unlock_bits=0x3F
atmega8.bootloader.lock_bits=0x0F

atmega8.build.mcu=atmega8
atmega8.build.f_cpu=16000000L  <<< 1000000L
atmega8.build.core=arduino
atmega8.build.variant=standard

##############################################################