24 |
xres="${xorg_width}" |
xres="${xorg_width}" |
25 |
yres="${xorg_height}" |
yres="${xorg_height}" |
26 |
|
|
27 |
|
# fallback to 800x600 |
28 |
|
[[ -z ${xres} ]] && xres="800" |
29 |
|
[[ -z ${yres} ]] && xres="600" |
30 |
|
|
31 |
# top left edge of the icon is given in config file |
# top left edge of the icon is given in config file |
32 |
# remove a little bit to simulate the bottom-right edge |
# remove a little bit to simulate the bottom-right edge |
33 |
xres="$(( ${xres} - 120 ))" |
xres="$(( ${xres} - 120 ))" |
37 |
[ -d ${dest} ] && rm -rf ${dest} |
[ -d ${dest} ] && rm -rf ${dest} |
38 |
[ -f ${rc} ] && rm -f ${rc} |
[ -f ${rc} ] && rm -f ${rc} |
39 |
install -d ${dest} |
install -d ${dest} |
40 |
|
chown "${MCORE_UNPRIV_USER}":"${MCORE_UNPRIV_GROUP}" ${dest} |
41 |
|
|
42 |
# clean default reboot,shutdown icon info |
# clean default reboot,shutdown icon info |
43 |
for i in shutdown reboot |
for i in shutdown reboot |