blob: c493de8321d7dedefb31a51aa94a9a6a55270381 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/bash
if [ "$UID" -ne 0 ]; then
echo "Please run this as root!" >&2
exit 6
fi
cd `dirname $0`
git submodule update --init || (echo "Submodule update failed!"; exit 5)
# Source inst and diff function
. ./utils/inst
# Load if we force changes (implies no interaction)
[ "$1" = "-f" ] && FORCE=true || FORCE=false
#################################################################################
if ask "sys-path" "System PATH profile"; then
inst system/etc/profile.d/path.sh /etc/profile.d/path.sh
fi
if ask "sys-x11" "X11 configuration"; then
inst system/etc/X11/ /etc/X11/
fi
if ask "sys-pulse" "System-wide PulseAudio configuration"; then
inst system/etc/pulse/ /etc/pulse/
fi
if ask "sys-wpa" "Wpa supplicant"; then
# TODO
true
fi
# As final step just ensure that correct user is owning system files
chown -R $(stat -c "%U:%G" "$0") system
|