Diff of /branches/mage-next/src/mage4.functions.sh.in
Parent Directory | Revision Log | Patch
revision 1502 by niro, Tue Aug 30 10:39:28 2011 UTC | revision 1541 by niro, Tue Dec 20 12:58:32 2011 UTC | |
---|---|---|
# | Line 3128 busybox_filter_wget_options() | Line 3128 busybox_filter_wget_options() |
3128 | echo "${opts}" | echo "${opts}" |
3129 | fi | fi |
3130 | } | } |
3131 | ||
3132 | have_root_privileges() | |
3133 | { | |
3134 | local retval | |
3135 | ||
3136 | if [[ $(id -u) = 0 ]] | |
3137 | then | |
3138 | retval=0 | |
3139 | else | |
3140 | retval=1 | |
3141 | fi | |
3142 | ||
3143 | return ${retval} | |
3144 | } |
|