Skip to content

Instantly share code, notes, and snippets.

@nkcr
Created June 27, 2018 07:49
Show Gist options
  • Save nkcr/52de648f4b541980d230a5213acb56c2 to your computer and use it in GitHub Desktop.
Save nkcr/52de648f4b541980d230a5213acb56c2 to your computer and use it in GitHub Desktop.
#!/bin/bash
DEST_DIR=~/picam
SHM_DIR=/run/shm
mkdir -p $SHM_DIR/rec
mkdir -p $SHM_DIR/hooks
mkdir -p $SHM_DIR/state
mkdir -p $DEST_DIR/archive
ln -sfn $DEST_DIR/archive $SHM_DIR/rec/archive
ln -sfn $SHM_DIR/rec $DEST_DIR/rec
ln -sfn $SHM_DIR/hooks $DEST_DIR/hooks
ln -sfn $SHM_DIR/state $DEST_DIR/state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment