<div dir="ltr"><div><div><div><div><div>I know this sounds silly, because a standard of sorts already exists (other platforms use something similar), but can we not have a common subdirectory in /etc for these scripts, e.g. /etc/shell.d with the relevant shells/scripts as subdirectories. e.g. /etc/shell.d/profile and /etc/shell.d/login ?<br>
<br></div>it just seems slightly better organised.<br><br></div>just as a suggestion, which you are free to ignore, when you get a new Apache2 server set up on an Ubuntu box, you get the "sites-available" and "sites-enabled" directories. All available scripts/setup are in sites-available, and if they are wanted they are soft-linked into the sites-enabled directory ... do we want to consider doing something like this for shell scripts?<br>
<br></div>While I'm not generally a fan of software installs adding lots of stuff to my start up scripts (remembering back to my days of DOS and windows 3.1, and the autoexec.bat and config.sys) your scripts look like they should work as expected, and it does make adding and removing scripts with installs easier.<br>
<br></div>Just out of interest, how did you envisage sorting the run order for the scripts in the subdirectories? Are we planning on instigating the 2 digit leading order, in a similar fashion to the rc.d scripts? if we were, then we could check for filenames beginning with numbers, which would allow "README" and other documentation to exist in those directories that isn't run automatically.<br>
<br></div>Jon<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 November 2013 07:15, Alexander Pyhalov <span dir="ltr"><<a href="mailto:alp@rsu.ru" target="_blank">alp@rsu.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/28/2013 11:00, Alexander Pyhalov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello.<br>
<br>
It seems that this change is not welcome upstream illumos-gate. Perhaps,<br>
we can put it locally. I add sourcing /etc/profile.d/*.sh and<br>
/etc/csh/login.d/*.csh scripts to /etc/profile and /etc/.login. Are<br>
there any notices or objections?<br>
<br>
</blockquote>
<br></div>
Forgot link: <a href="https://github.com/pyhalov/oi-userland/compare/profile_d" target="_blank">https://github.com/pyhalov/oi-<u></u>userland/compare/profile_d</a><div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Best regards,<br>
Alexander Pyhalov,<br>
system administrator of Computer Center of Southern Federal University<br>
<br>
______________________________<u></u>_________________<br>
oi-dev mailing list<br>
<a href="mailto:oi-dev@openindiana.org" target="_blank">oi-dev@openindiana.org</a><br>
<a href="http://openindiana.org/mailman/listinfo/oi-dev" target="_blank">http://openindiana.org/<u></u>mailman/listinfo/oi-dev</a><br>
</div></div></blockquote></div><br></div>