Re: lug-bg: smbmount on boot ...
- Subject: Re: lug-bg: smbmount on boot ...
- From: alek@email.domain.hidden (Alek Andreev)
- Date: Tue, 27 May 2003 19:35:37 +0300
Nadiavam se che niama nishto nelegalno v direktoriata
/usr/database/movies. :)
Osven tova mojesh da probvash sus slednia script:
#!/bin/sh
while [ $# = 0 ]
do
sleep 30s
if [ "`ls /mnt/smb/movies`" = "" ]
then
echo Mounting SMB filesystems...
/sbin/mount.smbfs //10.0.0.4/movies/usr/database/movies/new/ -o guest
fi
done
Tozi script proveriava periodichno dali e mountnat share-a i ako ne e go
mountva.
Polzvam podoben script za da si podurjam PPTP vruzkata kum internet.
Razlikata e che "if" reda e:
if [ "`/sbin/route | grep ppp`" = "" ]
a reda predi "fi" e
/sbin/service network start
<p>PS. Ne se smeite na strannia syntaksis na shell scripta. Toi e plod na
dulug proces ot probi i greshki :)
Viktor Vasilev wrote:
<em class="quotelev1">>privet,
<em class="quotelev1">>
<em class="quotelev1">>On Tue, 27 May 2003 oneofus_at_crew.inetg.bg wrote:
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev2">>>imam samba , (mashinata e slackware 8.1, smbd -V
<em class="quotelev2">>> Version 3.0alpha23) koqto neshte i neshte da si mount-va
<em class="quotelev2">>> remote partition sled restart. kakwo li ne probwah , po
<em class="quotelev2">>> princip tezi neshta se opiswaqt w rc.inet2 no .. i taka ne
<em class="quotelev2">>>stana. prawih otdelen script ot sorta na ..
<em class="quotelev2">>> /sbin/mount.smbfs //10.0.0.4/movies/usr/database/movies/new/ -o guest
<em class="quotelev2">>>
<em class="quotelev2">>>
<em class="quotelev1">>
<em class="quotelev1">>ne znaq zashto ne stava s tvoq script, edno obqsnenie e, 4e reda sys
<em class="quotelev1">>smbfs vyobshte ne se izpylnqva pri boot, drugo e 4e primerno mnogo rano
<em class="quotelev1">>se izpylnqva (moje da prilojish izhoda ot 'dmesg' v sledvasht posting).
<em class="quotelev1">>moeto predlojenie e da probvash da slojish neshto podobno vyv /etc/fstab:
<em class="quotelev1">>//10.0.0.4/movies/usr/database/movies/new /mnt/smb/movies smbfs guest,ro,auto 0 0
<em class="quotelev1">>predpolagam 4e pri boot shte go mountne.
<em class="quotelev1">>
<em class="quotelev1">>pozdravi,
<em class="quotelev1">>
<em class="quotelev1">>viktor
<em class="quotelev1">>============================================================================
<em class="quotelev1">>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev1">>http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
<em class="quotelev1">>To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev1">>============================================================================
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
--
Regards,
Alek Andreev
Zvuk.Net
alek_at_zvuk.net
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|