Diffstat (limited to 'noncore/tools/opie-sh/scripts/filesystem_mounter.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/tools/opie-sh/scripts/filesystem_mounter.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/tools/opie-sh/scripts/filesystem_mounter.sh b/noncore/tools/opie-sh/scripts/filesystem_mounter.sh index faaf37c..ba461a1 100755 --- a/noncore/tools/opie-sh/scripts/filesystem_mounter.sh +++ b/noncore/tools/opie-sh/scripts/filesystem_mounter.sh | |||
@@ -21,15 +21,15 @@ | |||
21 | # 20020517-2 - fixed output bug | 21 | # 20020517-2 - fixed output bug |
22 | # 20020517-1 - nicer fullscreen, added about, tried icon | 22 | # 20020517-1 - nicer fullscreen, added about, tried icon |
23 | # | 23 | # |
24 | 24 | ||
25 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 25 | OPIE_SH=$OPIEDIR/bin/opie-sh |
26 | 26 | ||
27 | ###################################################################### | 27 | ###################################################################### |
28 | # subroutines | 28 | # subroutines |
29 | 29 | ||
30 | about() { | 30 | about() { |
31 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 31 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
32 | echo "<h3>About</h3>" | 32 | echo "<h3>About</h3>" |
33 | echo "This little App should make it possible for you to " | 33 | echo "This little App should make it possible for you to " |
34 | echo "easily mount and unmount filesystems from /etc/fstab" | 34 | echo "easily mount and unmount filesystems from /etc/fstab" |
35 | echo "<p>" | 35 | echo "<p>" |
@@ -38,9 +38,9 @@ about() { | |||
38 | sleep 1 | 38 | sleep 1 |
39 | } | 39 | } |
40 | 40 | ||
41 | beforemount() { | 41 | beforemount() { |
42 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 42 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
43 | echo "<h3>mount or unmount $MOUNTPOINT ?</h3>" | 43 | echo "<h3>mount or unmount $MOUNTPOINT ?</h3>" |
44 | echo "<b>excerpt from MOUNT(8) manpage:</b><p>" | 44 | echo "<b>excerpt from MOUNT(8) manpage:</b><p>" |
45 | echo "All files accessible in a Unix system are arranged in one | 45 | echo "All files accessible in a Unix system are arranged in one |
46 | big tree, the file hierarchy, rooted at <b>/</b>. These files | 46 | big tree, the file hierarchy, rooted at <b>/</b>. These files |
@@ -99,9 +99,9 @@ get_action | |||
99 | if [ "$MOUNTPOINT" = "" ] | 99 | if [ "$MOUNTPOINT" = "" ] |
100 | then echo "ugly error...." | $OPIE_SH -f ; cleanup | 100 | then echo "ugly error...." | $OPIE_SH -f ; cleanup |
101 | fi | 101 | fi |
102 | 102 | ||
103 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 103 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
104 | echo "<h3>Output of $ACTION $MOUNTPOINT :</h3>" | 104 | echo "<h3>Output of $ACTION $MOUNTPOINT :</h3>" |
105 | echo "<pre>" | 105 | echo "<pre>" |
106 | $ACTION $MOUNTPOINT 2>&1 | 106 | $ACTION $MOUNTPOINT 2>&1 |
107 | echo "</pre><p>" | 107 | echo "</pre><p>" |