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

pdir=@afm_platform_rundir@

dodir() {
	for x; do
		test -e "$x" || mkdir -m 755  "$x"
		chmod 755 "$x"
		chsmack -T -a 'System::Shared' "$x"
	done
}

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

@create_platform_debug@

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