summaryrefslogtreecommitdiff
path: root/faq/debian/apt_umount.mdwn
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-03-19 18:47:23 +0100
committerThomas Schwinge <thomas@codesourcery.com>2013-03-19 18:47:23 +0100
commitd166bfaaa3ddf8b83b5cc6bde62f8872e6a80c82 (patch)
tree4d8a8904c2c49122c37895ed4573a5fcbd19ed4f /faq/debian/apt_umount.mdwn
parent64f867bbc45d265009a1bad590bc1d4d9ea91d6e (diff)
parentce8c2531cdb7ee05784437da4c38459e5d3897d6 (diff)
Merge remote-tracking branch 'savannah/master'
As part of the merge, fix some typos, add copyright and licensing headers, and a few more minor changes.
Diffstat (limited to 'faq/debian/apt_umount.mdwn')
-rw-r--r--faq/debian/apt_umount.mdwn25
1 files changed, 25 insertions, 0 deletions
diff --git a/faq/debian/apt_umount.mdwn b/faq/debian/apt_umount.mdwn
new file mode 100644
index 00000000..db0dbfd1
--- /dev/null
+++ b/faq/debian/apt_umount.mdwn
@@ -0,0 +1,25 @@
+[[!meta copyright="Copyright © 2007, 2008 Free Software Foundation, Inc."]]
+
+[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
+id="license" text="Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License, Version 1.2 or
+any later version published by the Free Software Foundation; with no Invariant
+Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license
+is included in the section entitled
+[[GNU Free Documentation License|/fdl]]."]]"""]]
+
+[[!meta title="apt: unmount cdroms"]]
+
+You can add a shell script umount so that apt can automatically unmount cdroms.
+
+ #!/bin/sh
+ # Filename: /usr/bin/umount
+
+ settrans -fg "$@"
+
+Give executable permission to the script.
+
+ # chmod +x /usr/bin/umount
+
+In `/etc/fstab` add a trailing `/` after cdrom like `/cdrom/` since apt uses a
+trailing `/`.