Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a cisco AM10 wireless adapter and every boot, I need to run

usb_modeswitch -v 1307 -p 1169 -L -I -u -l

to get it to function as an adapter. Then I have to run a netcfg profile to connect to the internet.

I'm very new to systemd, how can I write a startup script that can run these commands, so I won't have to?

share|improve this question
    
You just put them in a script and reference that in a service file. –  goldilocks Dec 30 '12 at 17:39
    
udev might be the other wat to do it... You should be able to run a script if the adapter is plugged in... The data package from here: draisberghof.de/usb_modeswitch/#download have a udev rules file... (Line 496 in the current one seem to cover your modem / adapter) –  Gert van den Berg Dec 31 '12 at 8:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.