Changeset 73e0a61 for fedkit/smbmount.Linux.pl
- Timestamp:
- Mar 5, 2010 1:59:52 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- e777dab
- Parents:
- 593e901
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/smbmount.Linux.pl
r593e901 r73e0a61 10 10 $PUSER=shift || "jhickey"; 11 11 $PNAME=shift || "emulab-ops"; 12 $FSTYPE=shift || 'cifs'; 12 13 $FSTAB="/etc/fstab"; 13 14 $HOMEROOT="/users"; … … 68 69 69 70 print FSTAB "//$SHARE/$user\t"; 70 print FSTAB "$homedir\t cifs\t";71 print FSTAB "$homedir\t$FSTYPE\t"; 71 72 print FSTAB "auto,rw,credentials=/tmp/$user.cifs_creds,ip=$ADDR\t0\t0\n"; 72 73 … … 86 87 if ( $share) { 87 88 print FSTAB "//$SHARE/share\t"; 88 print FSTAB "/share\t cifs\t";89 print FSTAB "/share\t$FSTYPE\t"; 89 90 print FSTAB "rw,credentials=/tmp/$user.cifs_creds,ip=$ADDR\t0\t0\n"; 90 91 … … 97 98 close(FSTAB); 98 99 99 print("Mounting the cifsversions of everything\n");100 system("$MOUNT -a -t cifs");100 print("Mounting the $FSTYPE versions of everything\n"); 101 system("$MOUNT -a -t $FSTYPE");
Note: See TracChangeset
for help on using the changeset viewer.