View Single Post
  #29  
Old May 16th 18, 05:58 PM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default OT: Scripts - can anyone here understand what this one might'do'?

Auric__ wrote:
David B. wrote:

On 15/05/2018 17:26, Auric__ wrote:
David B. wrote:

[snip]
Personally, I would leave this script where you found it, as-is. It
doesn't do anything bothersome, and for all you know, something
important might miss it.

*Too late now*!


As long as the system is booting, it's not too late.

but although I deleted the item found by 'KnockKnock'
I STILL have the rc.common file on my machine!


It's possible that something in the system recreates it if it's deleted. But
since you have the entire contents of the script already (in your post on
bleepingcomputer), you could always recreate it using that.

I have that file on both my MacBook (El Capitan, 10.11) and my iMac (Snow
Leopard, 10.6). I didn't create either copy; I assume it was installed with
the system.

[snip]
I'm not trying to become a 'techie', I'm just curious about things which
don't appear logical when I turn over a few stones. I'm also intrigued
when some folk become exasperated by my questions instead of simply
answering them or, alternatively, ignore them!


I'd recommend against deleting files in "system" locations (and /etc very
definitely counts as one of those) if you don't know what their purpose is.
You didn't do any damage this time, but next time might result in an
unbootable system, and Mac repairs aren't cheap.


It's not that hard to find an example of that file.

My old Mac at least, came with a re-install DVD. I copied that
to an .iso file with Imgburn or similar, and this is what I
can see in there right now with 7ZIP (that's why I keep copies
of DVDs on my hard drive, for this sort of exercise).

I opened the file with WordPad for a look (as it does a good job
on line terminations), just to see it's the same file.

https://s31.postimg.cc/szw904vt7/whe..._rc_common.gif

Of course, you have to put the right permissions and ownership
on the file, but doing something like this in Terminal

ls -al /etc/rc.netboot

should give a hint about what a "nearest neighbor" uses for such.

Paul
Ads