1 2 3 4 5 6 7 8 9
#!/bin/sh # add mousedev to /etc/modules if not already there if ! grep -w -q ^mousedev /etc/modules; then echo mousedev >> /etc/modules fi modprobe mousedev || true