slitaz-tools diff tinyutils/tazctrlbox @ rev 312
tazctrlbox: improved date and time setting + users management
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 03 23:17:19 2009 +0100 (2009-03-03) |
parents | da1310b3627c |
children | 3a685ebc294f |
line diff
1.1 --- a/tinyutils/tazctrlbox Tue Dec 09 20:54:29 2008 +0000 1.2 +++ b/tinyutils/tazctrlbox Tue Mar 03 23:17:19 2009 +0100 1.3 @@ -66,7 +66,7 @@ 1.4 name=`cat /etc/passwd | grep $i | cut -d ":" -f 5 | sed s/,,,//` 1.5 home=`cat /etc/passwd | grep $i | cut -d ":" -f 6` 1.6 shell=`cat /etc/passwd | grep $i | cut -d ":" -f 7` 1.7 - echo "$login | $uid:$gid | $name | $home | $shell" 1.8 + echo "system-users | $login | $uid:$gid | $name | $home | $shell" 1.9 fi 1.10 done 1.11 } 1.12 @@ -205,10 +205,10 @@ 1.13 <frame Date and time> 1.14 <hbox> 1.15 <text wrap="false"> 1.16 - <label>"Date: "</label> 1.17 + <label>"System time: "</label> 1.18 </text> 1.19 - <entry editable="false" has_frame="false"> 1.20 - <input>date</input> 1.21 + <entry editable="false"> 1.22 + <input>LC_ALL=C date</input> 1.23 <variable>DATE</variable> 1.24 </entry> 1.25 <button> 1.26 @@ -219,8 +219,23 @@ 1.27 </button> 1.28 </hbox> 1.29 <hbox> 1.30 + <text wrap="false"> 1.31 + <label>"Hardware time:"</label> 1.32 + </text> 1.33 + <entry editable="false"> 1.34 + <input>LC_ALL=C hwclock</input> 1.35 + <variable>HWTIME</variable> 1.36 + </entry> 1.37 + <button> 1.38 + <label>System to HW</label> 1.39 + <input file icon="reload"></input> 1.40 + <action>hwclock -w</action> 1.41 + <action>refresh:HWTIME</action> 1.42 + </button> 1.43 + </hbox> 1.44 + <hbox> 1.45 <text wrap="true"> 1.46 - <label>"Timezone:"</label> 1.47 + <label>"Timezone: "</label> 1.48 </text> 1.49 <entry> 1.50 <input>cat /etc/TZ</input> 1.51 @@ -413,12 +428,12 @@ 1.52 <width>650</width><height>300</height> 1.53 <variable>USER</variable> 1.54 <label>Login|uid:gid|Name|Home|SHell</label> 1.55 - <input>$0 get_users</input> 1.56 + <input icon_column=\"0\">$0 get_users</input> 1.57 <action>$0 manage_user</action> 1.58 <action>refresh:USER</action> 1.59 </tree> 1.60 <hbox> 1.61 - <text width-chars=\"60\"> 1.62 + <text width-chars=\"66\"> 1.63 <label> 1.64 \"Note: To change passwords and delete users you can double-click on the user name.\" 1.65 </label>