Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created June 4, 2024 02:30
Show Gist options
  • Save lidgnulinux/2f2ddbe09a48cb222d830f1fd1a650b8 to your computer and use it in GitHub Desktop.
Save lidgnulinux/2f2ddbe09a48cb222d830f1fd1a650b8 to your computer and use it in GitHub Desktop.
Example of wpasupplicant & dhcpcd service file for dinit.
# dhcpcd service
type = process
command = /usr/bin/dhcpcd -B -M -j /var/log/dhcpcd-service.log wlp3s0
before = network.target
depends-on = pre-network.target
restart = true
logfile = /var/log/dhcpcd.log
# wpasupplicant service
type = process
command = /sbin/wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
before = network.target
depends-on = pre-network.target
restart = true
restart-delay = 3
smooth-recovery = true
@lidgnulinux
Copy link
Author

There is error 255, will inspect further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment