This repository has been archived on 2025-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
.bin
.config
audacious
autostart
conky
dconf
dsk
run
conky
conky-wttr
ipfs
kdeconnect
mate-volume-control-applet
redshift
dskrc
dunst
gtk-3.0
htop
i3
liferea
neofetch
polybar
pulse
qt5ct
rofi
syncthing-gtk
tint2
zim
compton.conf
dircolors
redshift.conf
user-dirs.dirs
user-dirs.locale
.firestarter
.ssh
.themes
.vim
.bashrc
.firestarterrc
.functions
.gitconfig
.gitmodules
.gtkrc-2.0
.inputrc
.kshrc
.profile
.vimrc
.xinitrc
.xsessionrc
.zshrc
home/.config/dsk/run/ipfs
2019-01-25 17:49:27 -06:00

22 lines
469 B
Bash

#! /usr/bin/env bash
if ! command -v ipfs > /dev/null 2>&1; then
echo "IPFS is not installed"
exit 0
fi
ipfs daemon &
# The following sets up the IPFS FUSE daemon
if command -v fusermount; then
ipfspath="$HOME/IPFS"
ipnspath="$HOME/IPNS"
for path in "$ipfspath" "$ipnspath"; do
mkdir -P "$path"
fusermount -u "$path"
done
# PIDless busy sleep trick
exec 1023<> <(:)
read -r -t 3 -u 1023
ipfs mount --ipfs-path="$ipfspath" --ipns-path="$ipnspath"
fi
wait