Skip to content

Commit bd249a2

Browse files
committed
sudoers need ,s
1 parent e68ad2c commit bd249a2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

ofone/ofone

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,13 @@ class MainWindows(ModemCtrl):
281281
s = "events"
282282
print("Have message windows")
283283

284-
ops = m.list_operators()
285-
if len(ops) == 0:
286-
m.network == ""
287-
s = "crashed baseband"
288-
print("Baseband crashed")
284+
# Good idea on Debian, but list never works on pmOS.
285+
if False:
286+
ops = m.list_operators()
287+
if len(ops) == 0:
288+
m.network == ""
289+
s = "crashed baseband"
290+
print("Baseband crashed")
289291

290292
m.wd.write(s, m.format_cellid()+"\n"+m.network+"\n"+("%d"%m.signal_strength)+"\n")
291293

startup/phone.sudoers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
%wheel ALL= NOPASSWD: /sbin/shutdown /sbin/poweroff /usr/sbin/iw /sbin/ifconfig /sbin/route /sbin/reboot /usr/sbin/alsactl /usr/share/unicsy/ofone/ofone /usr/share/unicsy/startup/root_startup /usr/bin/amixer
1+
%wheel ALL= NOPASSWD: /sbin/shutdown, /sbin/poweroff, /usr/sbin/iw, /sbin/ifconfig, /sbin/route, /sbin/reboot, /usr/sbin/alsactl, /usr/share/unicsy/ofone/ofone, /usr/share/unicsy/startup/root_startup, /usr/bin/amixer

startup/x_startup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run(m):
4848
wd.progress(10, "hardware")
4949
p = "/usr/share/unicsy/"
5050

51-
sy("sudo "+p+"root_startup")
51+
sy("sudo "+p+"startup/root_startup")
5252

5353
# Enable autosleep
5454
# instructions are at

0 commit comments

Comments
 (0)