All pastes #295680 Raw Edit

Unnamed

public text v1 · immutable
#295680 ·published 2006-12-29 17:27 UTC
rendered paste body
#!/bin/sh

hostname ipod
mount -t proc proc /proc
ln -s /dev/pty/m0 /dev/ptyp0
ln -s /dev/pty/m1 /dev/ptyp1
ln -s /dev/ide/host0/bus0/target0/lun0/disc /dev/hda
ln -s /dev/ide/host0/bus0/target0/lun0/part1 /dev/hda1
ln -s /dev/ide/host0/bus0/target0/lun0/part2 /dev/hda2
ln -s /dev/ide/host0/bus0/target0/lun0/part3 /dev/hda3
ln -s /dev/fb/0 /dev/fb0
ln -s /dev/tts/1 /dev/ttyS1
mknod /dev/ttyp0 c 3 0
mknod /dev/ttyp1 c 3 1

gen=`/bin/ipodinfo -g`
fs=`/bin/ipodinfo -f`

if [ $fs = "F" ]; then
  mount -tvfat -osync,rw /dev/hda2 /mnt
  if [ -h /iPod_Control ]; then :; else
    ln -s /mnt/iPod_Control /iPod_Control
  fi
fi

mount -o remount,rw /dev/hda3 /
ifconfig lo 127.0.0.1
if [ $gen -ge 3 ]; then
  hwclock --hctosys
fi
hdparm -q -S 1 /dev/hda
if [ -d /etc/rc.d ]; then
  for file in /etc/rc.d/*; do
    sh $file
  done
fi
if [ -x /bin/getLoader2Args ]; then
  if [ "`/bin/getLoader2Args`" != "" ]; then
    exec `/bin/getLoader2Args`
  fi
fi
if [ -e /bin/gui ]; then
  exec /bin/gui
else
  exec podzilla
fi