summaryrefslogtreecommitdiffstats
path: root/conf/system/afm-system-setup.sh.in
blob: c3f827e172f717c2806fc000dd84d3508e3e1fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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
@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