-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run as service? (Also speed performance issue) #1
Comments
Hello, |
This is needed right now! |
This is what I'm working on, but I can't get the router to launch in a usable state automatically on boot using any of the three methods that follow It will launch and broadcast an ap, but nothing will connect to it. If I run this from cli it works as expected If I try to set it as a systemd service things look good but nothing can connect to the ap (worth noting that starting the service manually after boot produces no change, enabling, disabling, stopping / starting, etc.. ) $ sudo systemctl status router.service I've tried a number of changes in the .service file but there has been no change. Referanced the create-ap .service file too. I can't say I've tried a conclusive set of params, but .service is where I've spent most of my time. Worth noting is I've tried these w/o auth, channel, and random-mac params. no change $sudo nano router.service I've tried rc.local, I'm sure I'm doing something wrong here because it won't launch/broadcast at all. It is chmod +x #!/bin/sh -e -p I've also tried starting it with using the same command Still results in a broadcast that I can't connect to. Tried several things including cell phones, computers, and an amazon fire stick (lol) its running on a raspi / ubuntu 20.10 server It may be worth noting that I am using two seperate interfaces for wifi. internal is recieving, usb is broadcasting Any idea what I may be doing wrong here? |
@eschwelgin
Why different configuration folder name? You chould try adding iptables.service and networkmanager.service as dependency. Try add a 2-minutes delay before calling
If use script, your script should be something like
|
I cleaned up my op to make some of the outputs a bit clearer, and to fix a mistake. sorry for the confusion.
Thats the second part of the output from systemctl status, I added the commands above and deleted the space in the middle of the output to make it a bit clearer
Sorry I changed all of the wlx984827adde1a to wlan0 for clarity, I must have missed that one. They are all the same
This produces no change. Router still broadcasts but nothing will connect to it. Here's my updated .service file [Unit] I also tried starting the service manually (disabled on startup, systemctl start) after the system had booted. Still runs with issues, broadcast ap / no connections) I also managed to get it running from rc.local. Surprisingly enough it was because I forgot the & at the end of the command to allow it to fork. I ran it like this for a while and it still ran with the same issues, broadcast ap / no connections. I fixed the file and booted back into grub, where I ran rc.local manually, and in that state it worked as expected. It really seems to me like any type of background / automatic start state results in the same issue, where it broadcasts the ap but nothing will connect to it. Any time I start it manually, through the cli or a script including rc.local) it runs as expected. The only other thing to note, last night I was playing around with it and although I don't remember the exact circumstances, I was seeing the errors from check_wifi_settings() "WARN: Using 'iwconfig', not as good as 'iw'" and "ERROR: Can't use 'iwconfig' to operation this WiFi interface neither". I'm sorry that I can't seem to reproduce today, but it was right before I forgot the & in rc.local and gave up for the night I appreciate your help |
I tried to run by systemd. Turned out
causes error
in systemd environment. For a quick workaround you can delete BTW, I have to fix watchdog. It didn't react when dnsmasq fails. (and it couldn't recognize zombie process) |
@eschwelgin |
Sorry to reopen an old thread but I tried to run lnxrouter using a script: `#!/bin/sh -e -p sleep 120 /usr/sbin/lnxrouter -i eth0 & sleep 2 disown -a sleep 2 exit 0` This script is launched by cron (@reboot) on a Raspberry Pi 4 and gives internet to an AVM Fritz Extender that should run a wifi network. |
Just because nobody else said so explicitly: this works now. Here is my service definition
N.B. to other readers: you may not want I came here to try this script after failing to get my USB Thank you for this script! |
Hello, thank you for your job.
I tried running this (on Raspberry 3, with 2 external usb dongles), as well as the original create_ap and just like the original script, it seems to have an issue, with the interfaces, if run from crontab.
Any chance to run it as a service, so it will be much easier, to run it at start up?
Also both the script seem to have an issue, with wlan0 -> wlan1 relay. The speed is cut drastically, best I can get is 50% less download rate on wlan1, compared to wlan0. The upload speed seems unaffected that much.
I know the hardware can perform a lot better, since running the LEDE, on the set up, only has around 10% downgrade.
For additional information, on-board wifi disabled, as well as network-manager is off. Clean install of debian.
Thanks again.
The text was updated successfully, but these errors were encountered: