I’m trying to make Kali start the 4g modem on startup.
so far I went to /etc/systemd/system and created a file called cellmodem.service
Next I entered these things:
[Unit]
Description=Start Cellular Modem
[Service]
ExecStart=/usr/local/bin/uconsole-4g-cm4 enable
ExecStart=/usr/bin/Sleep 60;/usr/bin/systemctl restart ModemManager
[Install]
WantedBy=default.target
------so after all that I saved the file from nano and entered:
systemctl enable cellmodem.service
but it doesn’t work, am I doing this wrong? Help Please.
I may be wrong. I haven’t built a script in ages. I believe after you make it you have to use the command line to make it executable. I hope this at least gives you something to Google.
Ummm… Did you try systemctl start cellmodem.service
? enable
causes the modem to run on startup, assuming your service is set up properly.