I needed to run
at startup so Virtualbox could grab the parallel port. I made a script "unload lp.sh" with the above code, ran chmod u+x on it to make it executable, put it into startup applications and restarted, no joy. After some searching I tried addingCode:modprobe -r lp
to the beginning of the script, also no joy, but if I ran the script from terminal it worked as expected. I fixed my issue by creating /etc/rc.local and putting the modprobe in there, but I'm curious why it didn't work through startup applications. This is purely for my edification, I like knowing how and why stuff does (or doesn't) work.Code:#!/bin/bash
Thanks!
Bookmarks