2010-01-20, 11:20
Methanoid Wrote:Could the next version (v8) include the W7 networking fix please?
Which fix are you talking about?
Something else. I need some of you help. The livecd's I'm building use debian live: http://wiki.debian.org/DebianLive
I'm trying to use the finish-install.d method to fix some configuration files at the end of the installer with this script. The script should read the custom user that is entered during the installation:
Code:
#!/bin/sh
xbmcUser=$(getent passwd 1000 | sed -e 's/\:.*//')
if [ "$xbmcUser" != "xbmc" ] ; then
in-target rm -rf /home/xbmc/
in-target sed -i "s/home\/xbmc/home\/$xbmcUser/g" /etc/smb.conf
in-target sed -i "s/USER=xbmc/USER=$xbmcUser/g" /etc/default/sabnzbdplus
fi
The script is executed during the finish-install.d phase only the $xbmcUser variable is empty. Anyone of you know how to set a variable with the custom user that is used during the setup/installation?