Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
85 user(s) are online (38 user(s) are browsing Forums)

Members: 1
Guests: 84

daveyw, more...

Support us!

Headlines

 
  Register To Post  

Suppress "Please insert ..." requester?
Home away from home
Home away from home


See User information
Is it possible?

I'm trying to use this script to mount my NAS device (USB stick on router)
FAILAT 21

LAB Check
ping 
-c=>NILFritz.Box        Lets see if our Router is online
IF WARN
    wait 5                 
Wait 5 seconds until next retry as NAS seems to be offline
ELSE                    ; Mount with SMBFS
    C
:Run >NILSamba:smbfs/smbfs WORKGROUP="Fritz!Box" QUIET DEVICE=SMBFSVOLUME=Fritz.NASCACHE=50 TRANSLATE="L:FileSystem_Trans/INTL.crossdos" SERVICE=//Fritz.Box/Fritz.NAS/
    
SKIP Lock            Locking the partition to read-only
ENDIF
SKIP BACK Check                ; If NAS is not onlinerepeat

LAB Lock
IF EXISTS Fritz.NAS:FRITZ/        ; NAS may be online (successfull pingbut not yet accessable from the OS
    C
:Lock Fritz.NASON >NIL:    ; Set Read-Only for Amiga OS
    SKIP 
EXIT
ELSE
    
wait 5                Wait 5 seconds
    SKIP BACK Lock            
; and repeat    
ENDIF

LAB EXIT


I'm using the script in WBStartup

Working great so far.
Except the second IF (EXISTS) prompts me a requester everytime the NAS is not accessable
(unless i set a wait state before which is long enough so that NAS is already useable, i could measure that, but its not what i wrote an IF loop for)

Please insert blah, blah, blah

Can i suppress it or make it choose "Retry" by default?
(No third-party programs please, i want to achieve that in AmigaDOS)

Thank you for any hints and also for bashing my scripting talents


...and thinking about it, here comes a feature request for the Workbench prefs
Please can i have a switch to make HDs, Partitions read-only on Workbench start? (Like with the option to hide them)
Thank you

Go to top
Re: Suppress "Please insert ..." requester?
Home away from home
Home away from home


See User information
@Raziel

Hint 1:

at the shell type

help if

Hint 2:

Notice the NOREQ keyword?


I wonder what that could mean

Go to top
Re: Suppress "Please insert ..." requester?
Home away from home
Home away from home


See User information
@broadblues

AAaaaaah

No way am i soooo stupid???

Gack

Thanks a lot

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project