#!/bin/bash
-# Filename: /etc/grml/fai/config/scripts/GRMLBASE/21-usersetup
+# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/21-usersetup
# Purpose: adjust user setup of the live-system
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
USERNAME=''
[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
-[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local
+[ -n "$GRML_LIVE_LOCAL_CONFIG" ] && . "$GRML_LIVE_LOCAL_CONFIG"
[ -n "$USERNAME" ] || USERNAME=grml
if grep -q "$USERNAME:x:1000" $target/etc/group ; then
add_user_to_group fuse
add_user_to_group games
add_user_to_group nvram
+add_user_to_group netdev
add_user_to_group plugdev
add_user_to_group scanner
add_user_to_group sudo
# make sure users can log in on consoles 4, 5 and 6 if username != grml:
if [ "$USERNAME" != "grml" ] ; then
sed -i "s/-u grml -g grml --autologin grml/-u ${USERNAME} -g ${USERNAME} --autologin ${USERNAME}/" \
- $target/etc/inittab.grml
+ $target/etc/inittab
fi
if [ -r $target/bin/zsh ] ; then
fi
## END OF FILE #################################################################
-# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3
+# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2