summaryrefslogtreecommitdiff
path: root/configs/syslinux-iso/overlay
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-03-15 23:45:04 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-03-15 23:45:18 -0300
commiteeadc90a1180c89d5324f76d91cd55ebd95f7a01 (patch)
tree09041f41089773fc2aff35619fe9b143519c4487 /configs/syslinux-iso/overlay
parent1e868e01143c23f773b2a46b2f3b8a8cd2e1ea67 (diff)
Add do_fix_perms() in archiso rc script.
Fix file permissions, since GIT does not manage perms other than 755 and 644. Also this can be used to adjusts owner:group. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'configs/syslinux-iso/overlay')
-rwxr-xr-xconfigs/syslinux-iso/overlay/etc/rc.d/archiso9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/syslinux-iso/overlay/etc/rc.d/archiso b/configs/syslinux-iso/overlay/etc/rc.d/archiso
index 618a79e..c30b435 100755
--- a/configs/syslinux-iso/overlay/etc/rc.d/archiso
+++ b/configs/syslinux-iso/overlay/etc/rc.d/archiso
@@ -81,10 +81,19 @@ do_locale_gen ()
stat_done
}
+# GIT does not manage perms others thans 755 and 644, so fix here.
+do_fix_perms ()
+{
+ stat_busy "Fixing file permissions..."
+ chmod 440 /etc/sudoers
+ stat_done
+}
+
case "$1" in
start)
do_locale_gen
do_makeuser
+ do_fix_perms
;;
esac
exit 0