Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/ash
- # a lot of the modprobe commands can be commented out, with a # at the start of the line
- # see output of the `dmesg` command to identify required modules/drivers
- # also get hardware info from: lspci, lshwd, Pup-SysInfo, Pupscan, Hardinfo
- # this script was made with info from:
- # http://ubuntuforums.org/showthread.php?t=330607
- # https://wiki.archlinux.org/index.php/Joystick
- # http://tldp.org/HOWTO/html_single/Webcam-HOWTO/
- # load modules
- insmod joydev &>/dev/null
- insmod hid &>/dev/null
- insmod input &>/dev/null
- depmod -a
- modprobe joydev &>/dev/null
- #gameports - top are most common
- modprobe ns558 &>/dev/null
- modprobe gameport &>/dev/null
- modprobe pcigame &>/dev/null
- modprobe emu10k1-gp &>/dev/null
- modprobe cs461x &>/dev/null
- # serial ports/devices
- modprobe serport &>/dev/null
- # usb devices
- modprobe hid &>/dev/null
- modprobe usbhid &>/dev/null
- # joypads - most of these, except 'analog', are brand/model specific and can be commented out
- modprobe analog &>/dev/null
- modprobe a3d &>/dev/null
- modprobe adi &>/dev/null
- modprobe cobra &>/dev/null
- modprobe gf2k &>/dev/null
- modprobe guillemot &>/dev/null
- modprobe grip &>/dev/null
- modprobe interact &>/dev/null
- modprobe tmdc &>/dev/null
- modprobe sidewinder &>/dev/null
- modprobe snd_ens1371 || modprobe snd_ens1371 joystick_port=1 &>/dev/null
- modprobe xpad || modprobe snd_ens1371 joystick_port=1 &>/dev/null
- # force feedback - also usbhid for 2.6.25.16
- modprobe iforce &>/dev/null
- modprobe evdev &>/dev/null
- # webcams
- modprobe videodev &>/dev/null
- modprobe quickcam &>/dev/null
- modprobe ibmcam &>/dev/null
- # wacom tablets
- modprobe wacom &>/dev/null
- # DVB TV devices
- modprobe dibx000_common &>/dev/null
- modprobe dib3000mc &>/dev/null
- modprobe dvb-core &>/dev/null
- modprobe dvb-usb &>/dev/null
- modprobe dvb-usb-dibusb-common &>/dev/null
- modprobe dvb-usb-nova-t-usb2 &>/dev/null
- modprobe mt2060 &>/dev/null
- modprobe dvb-pll &>/dev/null
- modprobe v4l1_compat &>/dev/null
- # map kb to joypad, if settings found, and not empty
- [ -s /root/.rejoystickrc ] && [ -x /usr/local/bin/rejoystick ] && exec /usr/local/bin/rejoystick -d
- #quit
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement