Ubuntu Pastebin

Paste from liuxg at Mon, 21 Dec 2015 13:30:15 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e
set -x

echo "Going to create a ramdisk directory"
mkdir -p ramdisk
mount -t tmpfs none ./ramdisk -o size=10m

echo "Going to launch webcam server!"

cd "$SNAP_APP_DATA_PATH"
webcamserv &

while :; do
    sleep 5
done

echo "webcam server is launched!"
Download as text