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 2008-05-08 05:58:42

mozkill
Member
Registered: 2008-04-26
Posts: 20

how to persist the "mount --bind" for optware?

I am hoping that someone can tell me how to persist the "mount --bind" through reboots.   When i reboot my machine my lighthttpd fails to start because it cant find /opt/share/www .

I need to know how to script these two commands during startup:

mkdir /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt

Offline

 

#2 2008-05-08 09:04:42

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: how to persist the "mount --bind" for optware?

You can put these commands in the funplug file, i have them in the file which came with Fonz 0.4 and put them in the end after the 'done' line

Last edited by knireis (2008-05-08 09:05:28)

Offline

 

#3 2008-05-08 10:25:50

mozkill
Member
Registered: 2008-04-26
Posts: 20

Re: how to persist the "mount --bind" for optware?

that seems to have worked.  thanks.

Offline

 

#4 2008-05-08 11:04:11

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: how to persist the "mount --bind" for optware?

I put the change at the beginning of fun_plug, just after these lines:

Code:

mkdir -p ${FUNPLUGDIR} ${LOGDIR}
echo "**** fun_plug script for DNS-323 (2007-09-16 tp@fonz.de) ****" >>${LOGFILE}
date >>${LOGFILE}

The lines I added are

Code:

echo "*Create and mount /opt for ipkg applications" >>${LOGFILE}
mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt
export PATH=/opt/bin:/opt/sbin:$PATH

(I'm also using fonz fun_plug 0.4)

Then the optware mount and PATH are ready if you want to use fun_plug.d/start folder for starting services installed by optware.

Or more neatly: http://dns323.kood.org/forum/t2170-funp … _plug.html

Last edited by sjmac (2008-05-09 16:59:58)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB