3 Commits
1.7.1 ... 1.7.3

Author SHA1 Message Date
fbt
79bccd989e Merge branch 'master' of builder:git/spark-rc 2015-06-16 16:45:40 +03:00
fbt
6d2a516b64 sync disks before shutting down 2015-06-16 16:45:33 +03:00
Alad Wenter
87de61f78c support for owner/group permissions in tmpfiles 2015-03-03 10:28:07 +03:00

10
rc.in
View File

@@ -31,13 +31,14 @@ rc.motd() {
} }
rc.tmpfiles() { rc.tmpfiles() {
printf '%s\n' "${cfg_tmpdirs[@]}" | while IFS=':' read dir perm; do printf '%s\n' "${cfg_tmpdirs[@]}" | while IFS=':' read dir perm own grp; do
mkdir -v -m "${perm:-755}" "$dir" install -v -d -m "${perm:-755}" -o "${own:-root}" -g "${grp:-root}" "$dir" 2>/dev/null
done done
printf '%s\n' "${cfg_tmpfiles[@]}" | while IFS=':' read file perm; do printf '%s\n' "${cfg_tmpfiles[@]}" | while IFS=':' read file perm own grp; do
> "$file" > "$file"
chmod -v "${perm:-644}" "$file" chmod -c "${perm:-644}" "$file"
chown -c "${own:-root}:${grp:-root}" "$file"
done done
} }
@@ -144,6 +145,7 @@ rc.halt() {
rc.shutdown() { rc.shutdown() {
rc.services_stop rc.services_stop
rc.stop_everything rc.stop_everything
sync
rc.unmount_everything rc.unmount_everything
rc.remount_root rc.remount_root