View Single Post
  #4   (View Single Post)  
Old 23rd November 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

The only thing that needs to be changed are probably the arrays and small other things, in order to convert it to sh. I'm not so eager to change it as NetBSD, by default, comes with ksh. In bash case, you'd have to install it first.

While reading the script I spoted one thing though, script was checking for the SHA512 and MD5 later in the script, even though the two were not mentioned in SETS array. In case they were not found on server script would fail. So I just removed it; if one needs it it could be added at the beginning of the script in SETS array.
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote