DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-05-08 19:36:10

BertrandB
Member
From: Dijon (France)
Registered: 2006-09-16
Posts: 119
Website

run-parts like fun_plug

My fun_plug became more and more complicated so to get an easier fun_plug to maintain i make a run-parts like

Code:

# cat fun_plug
#!/bin/sh
set -x
FUNDIR=$1
cd ${FUNDIR:=/mnt/HD_a2/fun_plug.d}
for FUNPLUG in *
do
   [ -x $FUNDIR/$FUNPLUG ]&& . $FUNDIR/$FUNPLUG
done
# ls fun_plug.d
00telnet  10CorrWeb   20crontab  20edna   99BugWifi
01local   10StopUpnp  20dyndns   20lprng  
#

I think things are more readable now and for example 20dyndns can be use to update my dyndns account via crontab.

Offline

 

#2 2007-05-09 07:36:31

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: run-parts like fun_plug

That's one cool idea.  Could you upload your scripts?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB