summaryrefslogtreecommitdiffstats
path: root/.local/bin/isomnt
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-03-19 15:12:30 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2022-03-19 15:12:30 +0100
commit947295c5efefa06962f150ad223307a22613d056 (patch)
tree9dbc142956de82179d6cf039e9d41b0d41245e4b /.local/bin/isomnt
parentAdded cool command (diff)
downloaddotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.gz
dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.bz2
dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.xz
dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.zst
dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.zip
Added scripts to mount iso files
Diffstat (limited to '')
-rwxr-xr-x.local/bin/isomnt8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/isomnt b/.local/bin/isomnt
new file mode 100755
index 0000000..18a86fd
--- /dev/null
+++ b/.local/bin/isomnt
@@ -0,0 +1,8 @@
+#!/usr/local/bin/dash -e
+
+echo qwe
+
+[ -z "$1" ] && exit 1
+doas mdconfig -a -t vnode -f "$1" -u 1
+mkdir -p "$HOME"/dvd
+mount -t cd9660 /dev/md1 "$HOME"/dvd