#! /bin/sh -x

if [ "$1" = "stop" -o "$1" = "restart" ]; then

  sync
  umount /dev/sda
  rmmod usb-storage
  rmmod sd_mod
  rmmod scsi_mod

fi

if [ "$1" = "start" -o "$1" = "restart" ]; then

  echo "8192" > /proc/sys/fs/file-max
  echo "32768" > /proc/sys/fs/inode-max
  echo "80" > /proc/sys/vm/swappiness
 
  #/sbin/insmod ide-tape
  #/sbin/modprobe ide-scsi

  modprobe af_packet
  modprobe ppp_async

  #enable usb mouse
  modprobe psmouse
  modprobe hid   

  rmmod iptable_filter
  rmmod ip_tables
  rmmod -f ip_tables
  modprobe ipchains

  modprobe pppoe

# modprobe mga

# modprobe matroxfb_base

# modprobe pl2303
  modprobe usb-storage

  modprobe cs46xx

  rmmod lp
  modprobe parport_pc
  modprobe lp

  /bin/chmod 1777 /tmp

  #su -c "cd /usr/src/linux-2.4-rmap; bk bkd -d -p3334 -xcd -xpush" - ed &
  /usr/bin/pon dsl-provider
fi
 
 
