slitaz-tools rev 359
Fix: Dont force $USER to uid 1000 if $USER is set.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed May 20 15:56:31 2009 +0200 (2009-05-20) |
parents | cb6c487bb8c3 |
children | 0770169c92b5 |
files | tinyutils/tazx |
line diff
1.1 --- a/tinyutils/tazx Mon May 18 20:23:50 2009 +0000 1.2 +++ b/tinyutils/tazx Wed May 20 15:56:31 2009 +0200 1.3 @@ -17,7 +17,7 @@ 1.4 WM=openbox 1.5 1.6 # Default user for config files in Live mode. 1.7 -USER=`cat /etc/passwd | grep 1000 | cut -d ":" -f 1` 1.8 +[ -z $USER ] && USER=`cat /etc/passwd | grep 1000 | cut -d ":" -f 1` 1.9 1.10 #################### 1.11 # Tazx functions #