Author Topic: Smbmount Ipk  (Read 2431 times)

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Smbmount Ipk
« on: December 21, 2004, 06:08:56 pm »
This is one of those "I really should clean this up so it's not so embarassing" package jobs, but I wanted to share.

This package includes smbmnt, smbmount, smbumount, libsmbclient, the desktop entry and an icon.

I've decided, in the best interest of my laziness, to have to edit the script to include "Your" information rather than having 3-4 more dialog boxes.

It really wouldnt be a problem to include them, I just havent found a way to make options "remember" (so you'd still have to edit the script).

For now, edit /opt/QtPalmtop/bin/opie-sh-smbmount.sh and put if the name of your share for SHARE and change the ip's in the SMBSERVER line.  AND (sorry) change your username at the bottom.


Code: [Select]
#!/bin/sh
SHARE=full

#is /mnt/net already in use?
if [ ` df | grep net | cut -c 57-64 ` != "" ]; then
        opie-sh -t "Umount?"  -m -M "Unmount /mnt/net?" -g -0 Yes -1 No
        RETURNCODE=$?
case $RETURNCODE in
        0) smbumount /mnt/net; exit;;
        1) exit;;
esac
fi
echo $SERVERS

SMBSERVER=` ( echo 192.168.1.201; echo 192.168.129.1 ) \
| opie-sh -i -L "SMB IP=" -t "SMBmount" -E -l -F -g`
if [ $SMBSERVER = ]; then
        exit
fi
smbmount //$SMBSERVER/$SHARE /mnt/net -o username=nobody,password=

smbmount_2.2.8a_arm.zip
zipped ipk (in case the attached file doesnt work)

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Smbmount Ipk
« Reply #1 on: August 31, 2005, 01:15:20 pm »

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Smbmount Ipk
« Reply #2 on: September 03, 2005, 02:29:45 am »
What exactly is this script for?  To mount shares from your pc onto the zaurus?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)