mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-08 04:51:06 -07:00
12 lines
256 B
Bash
Executable file
12 lines
256 B
Bash
Executable file
#! /bin/sh -e
|
|
|
|
exec 2>&1
|
|
|
|
mkdir -p /mnt/inferno
|
|
fgrep -q /mnt/inferno /proc/mounts || mount -o ro LABEL=inferno /mnt/inferno
|
|
test -e /var/www || ln -s /mnt/inferno /var/www
|
|
|
|
ip addr add 10.0.0.2/24 dev eth0
|
|
ip link set dev eth0 up
|
|
|
|
exec inotifyd true $PWD
|