# amusrpart.sh By: Zucca@dive.to (ICQ: 66768853 - MSN: ki77bi77@hotmail.com - IRC: Zucca@IRCnet)# Full copyright owned by Zucca. First non-copyrighted relase will be version 0.1.xxx.;)# Why? Because I'd like to finish this to... 'stable' version before anyone tries to use this. Any help is still very welcome.;)# NOTE: This script is mainly designed for DSL LiveCD. I don't know how this would act if used with other distributions/installs.# v 0.0.2b

# This simple script will mount all the partitions in all devices available on current computer for users if .mount.config is found from the root of partition.

for PARTITION in `ls /mnt/ | grep "[hs]d.[1-9]*"`# Let's list all the hd* and sd* devices...do

Well now I'm back wiith this project. I have improves my script a bit but now I don't get what's wrong...

Here's the source:

Code Sample

#!/bin/bash

# amusrpart.sh By: [EMAIL=Zucca@dive.to]Zucca@dive.to[/EMAIL] (ICQ: 66768853 - MSN: [EMAIL=ki77bi77@hotmail.com]ki77bi77@hotmail.com[/EMAIL] - IRC: Zucca@IRCnet)# Full copyright owned by Zucca. First non-copyrighted relase will be version 0.1.xxx.;)# Why? Because I'd like to finish this to... 'stable' version before anyone tries to use this. Any help is still very welcome.;)# NOTE: This script is mainly designed for DSL LiveCD. I don't know how this would act if used with other distributions/installs.# v 0.0.5b

# This simple script will mount all the partitions in all devices available on current computer for users if .mount.config is found from the root of partition.

if [ ! -e /var/mount_confs ]then mkdir /var/mount_confsfi

if [ -z $1 ]then echo 'USAGE: amusrpart.sh <mount|umount>' exitfi

TELLUSAGE="no"

for PARTITION in `ls /mnt/ | grep "[hs]d.[1-9]*"`# Let's list all the hd* and sd* devices...do

if [ $1 = "mount" ] then

if [ -e /tmp/.amusrpart.mark ] then echo "Partitions already mounted." echo "Or if you are sure that it is otherwise then delete /tmp/.amusrpart.mark" exit fi