summaryrefslogtreecommitdiffstats
path: root/conf/system/afm-system-setup.sh.in
blob: b7a3c5d802dc027767d63ef2b35183d1bfeb64a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

pdir=@afm_platform_rundir@

dodir() {
	if ! test -e $1; then
		mkdir -m 755  $1
		chsmack -a '*' -T $1
	fi
}

dodir $pdir
dodir $pdir/display
dodir $pdir/apis
dodir $pdir/apis/ws
dodir $pdir/apis/link
@create_platform_debug@

spdir=@afm_scope_platform_dir@
if ! test -e $spdir; then
	mkdir -m 755 $spdir
	chsmack -a '*' -T $spdir
	chown daemon:daemon $spdir
fi