<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 8/4/20 5:43 PM, Todd Benivegna
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJknMO2c-Rn6xMwDi07XPFeME451Xy_Jwbo73DBUWBp_ido3Jw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Right, but I don't know what NUT script is actually
calling it. I don't know how else I would check.</div>
<br>
</blockquote>
<p>you could</p>
<p>- use SHUTDOWNCMD ="<code>echo $SHELL >
/tmp/WhatShellIsInUse" and check the content of that file after
a shutdown is triggered<br>
</code></p>
<p><code>- proceed as you suggested earlier and add the same
function in dash's initialization file</code></p>
<p><code>- place all the commands suggested by Roger ( including the
function itself ) in a standard script saved on disk ( as a file
) and invoke that script from the shutdown command</code></p>
<p><code><br>
</code></p>
<p><code></code></p>
<blockquote type="cite"
cite="mid:CAJknMO2c-Rn6xMwDi07XPFeME451Xy_Jwbo73DBUWBp_ido3Jw@mail.gmail.com">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Aug 4, 2020 at 10:21
AM Manuel Wolfshant <<a
href="mailto:wolfy@nobugconsulting.ro"
moz-do-not-send="true">wolfy@nobugconsulting.ro</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
8/4/20 4:16 PM, Todd Benivegna wrote:<br>
> Ok, so now that I think of it, that might not actually
work when it is <br>
> not run by me. I guess that it all confirms that it
works in Bash, <br>
> but I think when it runs on its own it would use Dash...<br>
<br>
it uses whatever shell you ask for in the first line of the
script<br>
<br>
<br>
<br>
<br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>