ppp-on-up: support scripts with CRLF line breaks

This commit is contained in:
Christian Hesse 2024-07-16 12:42:24 +02:00
parent ee928605df
commit a26f78329a

View file

@ -28,7 +28,7 @@
/ipv6/dhcp-client/release [ find where interface=$IntName !disabled ]; /ipv6/dhcp-client/release [ find where interface=$IntName !disabled ];
:foreach Script in=[ /system/script/find where source~("\n# provides: ppp-on-up\n") ] do={ :foreach Script in=[ /system/script/find where source~("\n# provides: ppp-on-up\r?\n") ] do={
:local ScriptName [ /system/script/get $Script name ]; :local ScriptName [ /system/script/get $Script name ];
:do { :do {
$LogPrint debug $ScriptName ("Running script: " . $ScriptName); $LogPrint debug $ScriptName ("Running script: " . $ScriptName);