Fixing powernap on ubuntu server eoan 19.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powernap (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, I'm sending you a patch to get the powernap running on eoan 19.10 server again.
BTW It's taking me more time trying to get my head around how launchpad platform works. I'm giving up on it and I'm sending you output of:
git format-patch --stdout HEAD~2..HEAD
Please integrate it where it belongs.
Thanks
From b3224fd6f8c35cd
From: Rostislav Svoboda <email address hidden>
Date: Sun, 1 Dec 2019 19:27:49 +0100
Subject: [PATCH 1/2] FIX: systemd target-name
---
debian/
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/
index 1694d4f..b2fea51 100644
--- a/debian/
+++ b/debian/
@@ -1,7 +1,7 @@
[Unit]
Description=
-Requires=
-After=
+Requires=
+After=
[Service]
Type=forking
--
2.24.0
From d71549020546f45
From: Rostislav Svoboda <email address hidden>
Date: Sun, 1 Dec 2019 19:22:39 +0100
Subject: [PATCH 2/2] FIX: ifconfig doesn't exist on 19.10 eoan anymore
---
powernap-ethtool | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/powernap-ethtool b/powernap-ethtool
index 0cbe866..c5ea289 100755
--- a/powernap-ethtool
+++ b/powernap-ethtool
@@ -5,7 +5,8 @@ if [ -x /etc/powernap/
/etc/
else
# Otherwise, try to enable Wake-on-LAN on valid interface(s)
- for i in $(LANG=C /sbin/ifconfig | grep "encap:Ethernet" | awk '{print $1}'); do
+ interfaces=
+ for i in $interfaces; do
if /usr/sbin/ethtool $i | grep -qs "Supports Wake-on: .*g"; then
fi
--
2.24.0