[maemo-commits] [maemo-commits] r11957 - projects/haf/trunk/osso-af-startup/top-scripts
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue May 29 18:10:15 EEST 2007
- Previous message: [maemo-commits] r11956 - in projects/haf/trunk/hildon-desktop: . src
- Next message: [maemo-commits] r11958 - in projects/haf/branches/hildon-theme-layout-5: . rc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kihamala Date: 2007-05-29 18:10:13 +0300 (Tue, 29 May 2007) New Revision: 11957 Modified: projects/haf/trunk/osso-af-startup/top-scripts/af-services Log: better shell code from Eero Modified: projects/haf/trunk/osso-af-startup/top-scripts/af-services =================================================================== --- projects/haf/trunk/osso-af-startup/top-scripts/af-services 2007-05-29 15:09:02 UTC (rev 11956) +++ projects/haf/trunk/osso-af-startup/top-scripts/af-services 2007-05-29 15:10:13 UTC (rev 11957) @@ -21,19 +21,14 @@ # 02110-1301 USA # Exclude some UIDs from memory allocation denial. -getuid() -{ - echo `cat /etc/passwd | grep "^$1" | awk -F ':' '{print $3}'` -} -# ensure these UIDs are protected for backwards compatibility -TMP_UIDS="30000 30001 30002 30003" - # ensure these users are protected -for n in messagebus systemui haldaemon; do - TMP_UIDS="$TMP_UIDS `getuid $n`" -done +TMP_UIDS=$(awk -F: '/^(messagebus|systemui|haldaemon)/{printf " " $3}' \ + < /etc/passwd) +# ensure these UIDs are protected for backwards compatibility +TMP_UIDS="30000 30001 30002 30003 $TMP_UIDS" + UIDS="" for n in $TMP_UIDS; do echo $UIDS | grep $n > /dev/null
- Previous message: [maemo-commits] r11956 - in projects/haf/trunk/hildon-desktop: . src
- Next message: [maemo-commits] r11958 - in projects/haf/branches/hildon-theme-layout-5: . rc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]