#!/usr/bin/perl
#You must have the USB filesystem enabled to use UPDD.\nDo you want UPDD to try to enable it?

open XIN, "</etc/fstab";
open XOUT, ">/etc/fstab.new";

while($buf = <XIN>) {
  $buf2 = $buf;
  $buf=~s/^\s+//;
  $buf=~s/\s+$//;

  if($buf eq "usbfs                /proc/bus/usb        usbfs      noauto                0 0") {
    print XOUT "usbfs                /proc/bus/usb        usbfs      defaults                0 0\n";
  }
  else {
    print XOUT $buf2;
  }
}

`mv /etc/fstab.new /etc/fstab`;
