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

`sed 's|#mkdir -p /dev/bus/usb/.usbfs|mkdir -p /dev/bus/usb/.usbfs|' < /etc/init.d/mountdevsubfs.sh > tmp`;
`mv tmp /etc/init.d/mountdevsubfs.sh`;
`sed 's|#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644|domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644|' < /etc/init.d/mountdevsubfs.sh > tmp`;
`mv tmp /etc/init.d/mountdevsubfs.sh`;
`sed 's|#ln -s .usbfs/devices /dev/bus/usb/devices|ln -s .usbfs/devices /dev/bus/usb/devices|' < /etc/init.d/mountdevsubfs.sh > tmp`;
`mv tmp /etc/init.d/mountdevsubfs.sh`;
`sed 's|#mount --rbind /dev/bus/usb /proc/bus/usb|mount --rbind /dev/bus/usb /proc/bus/usb|' < /etc/init.d/mountdevsubfs.sh > tmp`;
`mv tmp /etc/init.d/mountdevsubfs.sh`;
