-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from smoser/fix/107dhcpd-stop-pid
Fix stopping of dhcpcd service. (#107)
- Loading branch information
Showing
3 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
This directory contains patches to be applied to buildroot. | ||
They're in quilt style format, but nothing automated will apply | ||
them. After downloading and extracting buildroot, linking it | ||
to ./buildroot , you will need to run: | ||
( cd buildroot && QUILT_PATCHES=$PWD/../patches-buildroot quilt push -a ) | ||
They're in quilt(1) style format. | ||
|
||
bin/bundle' will apply the patches to buildroot source if | ||
there is a patches-buildroot/series file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
From f73718ce5efe2cfda8bd3c8fc7cc72e30b2b10f1 Mon Sep 17 00:00:00 2001 | ||
From: Konstantin Menyaev <[email protected]> | ||
Date: Mon, 5 Sep 2022 04:09:13 +0300 | ||
Subject: [PATCH] package/dhcpcd: fix pid path | ||
|
||
From the README: | ||
dhcpcd-9 defaults the run directory to `/var/run/dhcpcd` instead of | ||
`/var/run` and the prefix of dhcpcd has been removed from the files. | ||
|
||
Make it so. | ||
|
||
Signed-off-by: Konstantin Menyaev <[email protected]> | ||
Signed-off-by: Yann E. MORIN <[email protected]> | ||
--- | ||
package/dhcpcd/S41dhcpcd | 2 +- | ||
package/dhcpcd/dhcpcd.service | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/package/dhcpcd/S41dhcpcd b/package/dhcpcd/S41dhcpcd | ||
index 3e5c22f715..55794f4075 100644 | ||
--- a/package/dhcpcd/S41dhcpcd | ||
+++ b/package/dhcpcd/S41dhcpcd | ||
@@ -5,7 +5,7 @@ | ||
|
||
DAEMON=/sbin/dhcpcd | ||
CONFIG=/etc/dhcpcd.conf | ||
-PIDFILE=/var/run/dhcpcd.pid | ||
+PIDFILE=/var/run/dhcpcd/pid | ||
|
||
[ -f $CONFIG ] || exit 0 | ||
|
||
diff --git a/package/dhcpcd/dhcpcd.service b/package/dhcpcd/dhcpcd.service | ||
index e648092c9b..4da49818a7 100644 | ||
--- a/package/dhcpcd/dhcpcd.service | ||
+++ b/package/dhcpcd/dhcpcd.service | ||
@@ -5,7 +5,7 @@ After=network.target | ||
[Service] | ||
Type=forking | ||
EnvironmentFile=-/etc/default/dhcpcd | ||
-PIDFile=/run/dhcpcd.pid | ||
+PIDFile=/run/dhcpcd/pid | ||
ExecStart=/sbin/dhcpcd $DAEMON_ARGS | ||
Restart=always | ||
|
||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-dhcpcd-fix-pid-path.patch |