No description
Find a file
Andy Taylor 8e2935dd34 pistar-modemupgrade: auto-detect non-interactive mode via [ -t 0 ]
NP=1 env-var was the existing opt-in for non-interactive mode,
but the dashboard's modem-flash page can't set it: the path-
scoped sudoers at /etc/sudoers.d/pistar-dashboard has no SETENV:
tag on PISTAR_DASH_SCRIPTS and no Defaults env_keep += "NP", so
`sudo NP=1 pistar-modemupgrade …` was rejected outright with
"sorry, you are not allowed to set the following environment
variables: NP". The dashboard's flash page silently hung
forever as a result.

Auto-detect now: when stdin is not a TTY we set NP=1 implicitly
(can't be a human at the prompt anyway). Backwards-compatible:
explicit `NP=1 sudo ./pistar-modemupgrade …` still works, and
interactive shell callers continue to get the y/n prompt.

Pairs with the corresponding dashboard PHP fix that drops the
`NP=1 ` prefix from admin/expert/modem_fw_upgrade.php's sudo
invocation.
2026-05-04 10:06:59 +01:00
aprsgateway.service Fix for #59 2024-02-12 20:37:37 +00:00
dapnetgateway.service Fix for #59 2024-02-12 20:37:37 +00:00
dgidgateway.service Update dgidgateway.service 2024-02-16 18:14:24 +00:00
dmr2nxdn.service Fix for #59 2024-02-12 20:37:37 +00:00
dmr2ysf.service Fix for #59 2024-02-12 20:37:37 +00:00
dmrgateway.service Fix for #59 2024-02-12 20:37:37 +00:00
dstarrepeater.service tweak the service handlers 2021-12-03 16:35:22 +00:00
HostFilesUpdate.sh Update HostFilesUpdate.sh 2024-02-11 21:56:54 +00:00
ircddbgateway.service tweak the service handlers 2021-12-03 16:35:22 +00:00
m17gateway.service Fix for #59 2024-02-12 20:37:37 +00:00
mmdvmhost.service Update mmdvmhost.service 2025-04-18 17:52:01 +01:00
mmdvmhost_NoOLED.service Fix for #59 2024-02-12 20:37:37 +00:00
mobilegps.service Update mobilegps.service 2025-04-24 09:35:40 +01:00
nextiondriver.service Update nextiondriver.service 2024-02-16 18:19:08 +00:00
nxdn2dmr.service Fix for #59 2024-02-12 20:37:37 +00:00
nxdngateway.service Fix for #59 2024-02-12 20:37:37 +00:00
nxdnparrot.service Fix for #59 2024-02-12 20:37:37 +00:00
p25gateway.service Fix for #59 2024-02-12 20:37:37 +00:00
p25parrot.service Fix for #59 2024-02-12 20:37:37 +00:00
pistar-ap.service Update pistar-ap.service 2025-04-24 09:33:30 +01:00
pistar-bmapi Update pistar-bmapi 2024-02-18 17:36:44 +00:00
pistar-bootconfig.sh Update pistar-bootconfig.sh 2025-04-24 09:30:34 +01:00
pistar-calibration-start pistar-calibration-start: kill the parent bash on stop; wait for flock release 2026-04-27 23:23:07 +01:00
pistar-clone Update pistar-clone 2024-01-29 14:53:03 +00:00
pistar-daily.cron Update pistar-daily.cron 2025-04-24 09:40:13 +01:00
pistar-dapnetapi Ability to send page to multiple recipients (callsign separated by comma, no space in between). 2019-02-21 19:51:50 +01:00
pistar-expand Update pistar-expand 2025-04-24 09:44:26 +01:00
pistar-factory-reset Add pistar-calibration-start and pistar-factory-reset wrappers 2026-04-27 22:36:50 +01:00
pistar-findmodem Update pistar-findmodem 2025-04-04 21:40:40 +01:00
pistar-firewall Update pistar-firewall 2025-04-18 13:23:37 +01:00
pistar-hourly.cron Update pistar-hourly.cron 2025-04-24 09:38:19 +01:00
pistar-jittertest add ping test tool 2020-12-01 15:07:38 +00:00
pistar-keeper Adding all Pi-Star sbin Binaries 2017-05-30 00:41:12 +01:00
pistar-keeper.service Adding all Pi-Star sbin Binaries 2017-05-30 00:41:12 +01:00
pistar-link Update pistar-link 2018-03-07 09:33:33 +00:00
pistar-mmdvmcal Update pistar-mmdvmcal 2025-04-24 09:37:19 +01:00
pistar-mmdvmhost-module Update pistar-mmdvmhost-module 2025-04-24 09:42:28 +01:00
pistar-mmdvmhshatreset Update pistar-mmdvmhshatreset 2025-04-04 21:43:23 +01:00
pistar-mmdvmremote Update pistar-mmdvmremote 2021-11-30 09:54:47 +00:00
pistar-modemupgrade pistar-modemupgrade: auto-detect non-interactive mode via [ -t 0 ] 2026-05-04 10:06:59 +01:00
pistar-motdgen Fix escape chars 2025-04-10 10:33:07 +01:00
pistar-nextiontext.py Update pistar-nextiontext.py 2025-06-01 16:07:45 +01:00
pistar-nxdnlink Update pistar-nxdnlink 2020-05-06 09:27:51 +01:00
pistar-oledtext.py Update pistar-oledtext.py 2025-04-18 15:36:11 +01:00
pistar-p25link Update pistar-p25link 2020-05-06 09:25:42 +01:00
pistar-remote Update pistar-remote 2022-01-05 19:04:46 +00:00
pistar-remote.service tweak the service handlers 2021-12-03 16:35:22 +00:00
pistar-sendcw Add tool for sending CW from the CLI 2020-05-06 10:02:22 +01:00
pistar-sslgenerate make pistar-sslgenerate executable 2021-07-09 21:51:43 +01:00
pistar-tgifapi Update pistar-tgifapi 2021-11-30 08:57:56 +00:00
pistar-update Update pistar-update 2025-11-21 14:06:39 +00:00
pistar-upgrade pistar-upgrade: add /etc/dhcpcd.conf, /etc/hosts, /etc/hostname to PISTAR_DASH_INSTALL 2026-05-01 13:42:11 +01:00
pistar-upnp.service Update pistar-upnp.service 2021-06-20 13:04:57 +01:00
pistar-watchdog Merge pull request #57 from tc0nn/patch-1 2024-01-25 09:17:02 +00:00
pistar-watchdog.service tweak the service handlers 2021-12-03 16:35:22 +00:00
pistar-ysflink Create pistar-ysflink 2021-11-30 10:45:28 +00:00
timercontrol.service tweak the service handlers 2021-12-03 16:35:22 +00:00
timeserver.service tweak the service handlers 2021-12-03 16:35:22 +00:00
ysf2dmr.service Fix for #59 2024-02-12 20:37:37 +00:00
ysf2nxdn.service Fix for #59 2024-02-12 20:37:37 +00:00
ysf2p25.service Fix for #59 2024-02-12 20:37:37 +00:00
ysfgateway.service Fix for #59 2024-02-12 20:37:37 +00:00
ysfparrot.service Fix for #59 2024-02-12 20:37:37 +00:00