Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
304ce4f5fa | |||
9046a2e3f4 | |||
5b77ac7846 | |||
d32a07020f | |||
0c43e420e3 | |||
0d8b097378 | |||
727e2517eb | |||
c5a3f00931 | |||
9097c5ea4b | |||
5bdb2b7bff | |||
dde1bd7369 | |||
adc614b54a | |||
e256ee0e41 | |||
a509f4fbdb | |||
4f48c53250 | |||
99921d8000 | |||
a3338ecbc4 | |||
95aecadc6f | |||
e666f44f7e | |||
63b2a4c93f | |||
a1197b245b | |||
175d2aff1d | |||
5ca3473783 | |||
d7ae79e2d5 |
@@ -4,7 +4,7 @@
|
||||
#FLASH_PLUGIN_PCK=flashplayer9_install_linux_082207.tar.gz
|
||||
#FLASH_PLUGIN_PCK=flash-player-plugin-9.0.48.0.tar.bz2
|
||||
#FLASH_PLUGIN_PCK=install_flash_player_9_linux.tar.gz
|
||||
FLASH_PLUGIN_PCK=install_flash_player_10_linux.tar.gz
|
||||
FLASH_PLUGIN_PCK=install_flash_player_11_linux.i386.tar.gz
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
#FLASH_PLUGIN_URL=http://download.macromedia.com/pub/labs/flashplayer9_update/
|
||||
|
@@ -38,15 +38,11 @@ tmpdir=$(mktemp -q -d -t skype.XXXXXXXX)
|
||||
|
||||
wget -nv --timeout=10 --tries=2 \
|
||||
${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir}
|
||||
|
||||
SKYPE_ARCHIVE="`ls ${tmpdir}/skype-*`"
|
||||
|
||||
SKYPE_ARCHIVE="`ls ${tmpdir}/*skype-* 2>/dev/null`"
|
||||
[ -f ${SKYPE_ARCHIVE} ] || exit 1
|
||||
|
||||
if [ `echo ${SKYPE_ARCHIVE} | grep "tar.bz2$"` ]; then
|
||||
tar xjf ${SKYPE_ARCHIVE} --strip-components=1
|
||||
else
|
||||
tar xzf ${SKYPE_ARCHIVE} --strip-components=1
|
||||
fi
|
||||
tar xf ${SKYPE_ARCHIVE} --strip-components=1
|
||||
|
||||
%build -q
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
FLASHPLUGIN_VERSION=10.3.183.7
|
||||
FLASHPLUGIN_VERSION=11.0.1.152
|
||||
WIN32CODECS_VERSION=20110131
|
||||
SKYPE_VERSION=2.2.0.35
|
||||
VIRTUALBOX_EXTENSION_PACK_VERSION=4.1.2.73507
|
||||
|
@@ -426,128 +426,6 @@ This tool is also useful before the installation of a third party boot manager i
|
||||
<set>AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setlabel</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>40</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
@if (@devicesbox.currentItem >= 0)
|
||||
currdev=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
@showdevice.setText(@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0))
|
||||
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
|
||||
@BackBox.setChecked(true)
|
||||
|
||||
parent_udi=`hal-find-by-property --key block.device --string /dev/$currdev`
|
||||
#
|
||||
# set MBR combo box
|
||||
#
|
||||
dcop @dcopid KommanderIf "clear(QString)" mbrbox
|
||||
storages=`hal-find-by-capability --capability storage`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "$currdev (@i18n("System partition"))" 0
|
||||
for udi in $storages; do
|
||||
device=`hal-get-property --udi $udi --key block.device`
|
||||
hotpluggable=`hal-get-property --udi $udi --key storage.hotpluggable` || hotpluggable="false"
|
||||
partscheme=`hal-get-property --udi $udi --key storage.partitioning_scheme`
|
||||
if [ "$partscheme" == "mbr" -a "$hotpluggable" != "true" ]; then
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (master boot record)" 0
|
||||
fi
|
||||
done
|
||||
dcop @dcopid KommanderIf "setCurrentItem(int)" 0
|
||||
@endif
|
||||
@execEnd
|
||||
@setBootableCheckbox.execute()</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>scanDevices</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>0</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@devicesbox.clear
|
||||
@BackBox.setChecked(false)
|
||||
@NextBox.setChecked(false)
|
||||
@execBegin
|
||||
volumes=`hal-find-by-capability --capability volume`
|
||||
partlabel=
|
||||
|
||||
for udi in $volumes; do
|
||||
device=`hal-get-property --udi $udi --key block.device`
|
||||
parent_udi=`hal-get-property --udi $udi --key block.storage_device`
|
||||
hotpluggable=`hal-get-property --udi $parent_udi --key storage.hotpluggable` || hotpluggable="false"
|
||||
blocksize=`hal-get-property --udi $udi --key volume.block_size`
|
||||
numblocks=`hal-get-property --udi $udi --key volume.num_blocks`
|
||||
volsize=`expr $blocksize \* $numblocks / 1024 / 1024`
|
||||
volname=`hal-get-property --udi $udi --key volume.label`
|
||||
[ "$volname" ] || volname="unnamed"
|
||||
parttype=`hal-get-property --udi $udi --key volume.partition.type`
|
||||
[ "$parttype" ] || parttype="unknown"
|
||||
partscheme=`hal-get-property --udi $udi --key volume.partition.scheme`
|
||||
[ "$partscheme" ] || partscheme="unknown"
|
||||
fstype=`hal-get-property --udi $udi --key volume.fstype`
|
||||
[ "$fstype" ] || fstype="unformatted"
|
||||
is_mounted=`hal-get-property --udi $udi --key volume.is_mounted`
|
||||
[ "$is_mounted" = "true" ] || {
|
||||
mkdir /mnt/${device:5:5} && mount $device /mnt/${device:5:5}
|
||||
}
|
||||
mount_point=`hal-get-property --udi $udi --key volume.mount_point`
|
||||
add_info=""
|
||||
[ "$hotpluggable" = "true" ] && {
|
||||
add_info=",removable"
|
||||
[ @removablebox.checked == 1 ] || continue
|
||||
}
|
||||
if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
|
||||
partlabel="$partlabel<br>${device:5:5} $fstype $volname $volsize MB"
|
||||
case "$parttype" in
|
||||
0x82) ;;
|
||||
0x83)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660) ;;
|
||||
ext2|ext3|reiserfs|unformatted)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point $volsize MB ($release)" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="GroupBox">
|
||||
<property name="name">
|
||||
<cstring>PartitionBox</cstring>
|
||||
@@ -601,27 +479,6 @@ done
|
||||
<set>WordBreak|AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>showdevice</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>340</y>
|
||||
<width>280</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label3</cstring>
|
||||
@@ -667,6 +524,158 @@ done
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>showdevice</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>180</x>
|
||||
<y>340</y>
|
||||
<width>350</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>scanDevices</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>0</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@devicesbox.clear
|
||||
@BackBox.setChecked(false)
|
||||
@NextBox.setChecked(false)
|
||||
@execBegin
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
|
||||
partlabel=
|
||||
|
||||
for device in $devices; do
|
||||
native_path=`get_udisks_key $device native-path`
|
||||
[ -e $native_path/partition ] || continue
|
||||
is_system_internal=`get_udisks_key $device "system internal"`
|
||||
volsize=`get_udisks_key $device size`
|
||||
volsize=`expr $volsize / 1024 / 1024`
|
||||
volname=`get_udisks_key $device label`
|
||||
[ "$volname" ] || volname="unnamed"
|
||||
parttype=`get_udisks_key $device usage`
|
||||
[ "$parttype" ] || parttype="unknown"
|
||||
partscheme=`get_udisks_key $device scheme`
|
||||
[ "$partscheme" ] || partscheme="unknown"
|
||||
fstype=`get_udisks_key $device type`
|
||||
[ "$fstype" ] || fstype="unformatted"
|
||||
add_info=""
|
||||
is_mounted=`get_udisks_key $device "is mounted"`
|
||||
[ "$is_mounted" = "1" ] || {
|
||||
mkdir /mnt/${device:5:5} && mount $device /mnt/${device:5:5}
|
||||
}
|
||||
mount_point=`get_udisks_key $device "mount paths"`
|
||||
add_info=""
|
||||
[ "$is_system_internal" == "1" ] || {
|
||||
add_info=",removable"
|
||||
[ @removablebox.checked == 1 ] || continue
|
||||
}
|
||||
|
||||
if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
|
||||
partlabel="$partlabel<br>${device:5:5} $fstype $volname $volsize MB"
|
||||
case "$fstype" in
|
||||
ext2|ext3|ext4|reiserfs|reiser4)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660) ;;
|
||||
ext2|ext3|ext4|reiserfs|reiser4)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point $volsize MB ($release)" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setlabel</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>40</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
@if (@devicesbox.currentItem >= 0)
|
||||
currdev=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
@showdevice.setText(@devicesbox.item(@devicesbox.currentItem))
|
||||
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
|
||||
@BackBox.setChecked(true)
|
||||
|
||||
#
|
||||
# set MBR combo box
|
||||
#
|
||||
dcop @dcopid KommanderIf "clear(QString)" mbrbox
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "$currdev (@i18n("System partition"))" 0
|
||||
|
||||
for device in $devices; do
|
||||
native_path=`get_udisks_key $device native-path`
|
||||
[ -e $native_path/partition ] && continue
|
||||
is_system_internal=`get_udisks_key $device "system internal"`
|
||||
partscheme=`get_udisks_key $device scheme`
|
||||
if [ "$is_system_internal" == "1" -o "@removablebox.checked" == "1" ]; then
|
||||
[ "$partscheme" == "mbr" ] && \
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (master boot record)" 0
|
||||
fi
|
||||
done
|
||||
dcop @dcopid KommanderIf "setCurrentItem(int)" 0
|
||||
@endif
|
||||
@execEnd
|
||||
@setBootableCheckbox.execute()
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget">
|
||||
@@ -837,41 +846,6 @@ done
|
||||
<set>WordBreak|AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setBootableCheckbox</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>520</x>
|
||||
<y>70</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
mbrpart=${mbrdevice:3:2}
|
||||
if [ "$mbrpart" ]; then
|
||||
if [ $mbrpart -le 4 ]; then
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox true
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
dcop @dcopid KommanderIf setChecked bootableBox false
|
||||
fi
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
fi
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ListBox">
|
||||
<property name="name">
|
||||
<cstring>chainloadbox</cstring>
|
||||
@@ -907,6 +881,41 @@ fi
|
||||
<set>WordBreak|AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setBootableCheckbox</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>520</x>
|
||||
<y>70</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
mbrpart=${mbrdevice:3:2}
|
||||
if [ "$mbrpart" ]; then
|
||||
if [ $mbrpart -le 4 ]; then
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox true
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
dcop @dcopid KommanderIf setChecked bootableBox false
|
||||
fi
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
fi
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
@@ -927,38 +936,39 @@ fi
|
||||
@chainloadbox.clear
|
||||
@setBootableCheckbox.execute()
|
||||
@execBegin
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
volumes=`hal-find-by-capability --capability volume`
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
|
||||
partlabel=
|
||||
|
||||
for udi in $volumes; do
|
||||
device=`hal-get-property --udi $udi --key block.device`
|
||||
[ "${device:5:5}" = "$installdevice" ] && continue
|
||||
parent_udi=`hal-get-property --udi $udi --key block.storage_device`
|
||||
hotpluggable=`hal-get-property --udi $parent_udi --key storage.hotpluggable` || hotpluggable="false"
|
||||
blocksize=`hal-get-property --udi $udi --key volume.block_size`
|
||||
numblocks=`hal-get-property --udi $udi --key volume.num_blocks`
|
||||
volsize=`expr $blocksize \* $numblocks / 1024 / 1024`
|
||||
for device in $devices; do
|
||||
native_path=`get_udisks_key $device native-path`
|
||||
[ -e $native_path/partition ] || continue
|
||||
is_system_internal=`get_udisks_key $device "system internal"`
|
||||
volsize=`get_udisks_key $device size`
|
||||
volsize=`expr $volsize / 1024 / 1024`
|
||||
[ $volsize = 0 ] && continue
|
||||
volname=`hal-get-property --udi $udi --key volume.label`
|
||||
mount_point=`hal-get-property --udi $udi --key volume.mount_point`
|
||||
volname=`get_udisks_key $device label`
|
||||
[ "$volname" ] || volname="unnamed"
|
||||
parttype=`hal-get-property --udi $udi --key volume.partition.type`
|
||||
parttype=`get_udisks_key $device usage`
|
||||
[ "$parttype" ] || parttype="unknown"
|
||||
partscheme=`hal-get-property --udi $udi --key volume.partition.scheme`
|
||||
partscheme=`get_udisks_key $device scheme`
|
||||
[ "$partscheme" ] || partscheme="unknown"
|
||||
fstype=`hal-get-property --udi $udi --key volume.fstype`
|
||||
fstype=`get_udisks_key $device type`
|
||||
[ "$fstype" ] || fstype="unformatted"
|
||||
add_info=""
|
||||
[ "$hotpluggable" = "true" ] && {
|
||||
[ "$is_system_internal" = "1" ] || {
|
||||
add_info=",removable"
|
||||
[ @removablebox.checked == 1 ] || continue
|
||||
}
|
||||
|
||||
if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
|
||||
partlabel="$partlabel<br>${device:5:5} $fstype $volname $volsize MB"
|
||||
case "$parttype" in
|
||||
0x82) ;;
|
||||
0x83) ;;
|
||||
case "$fstype" in
|
||||
swap|iso9660|unformatted) ;;
|
||||
ext2|ext3|ext4|reiserfs|reiser4|unformatted) ;;
|
||||
*) dcop @dcopid KommanderIf "addListItem(QString,QString,int)" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
dcop @dcopid KommanderIf "setSelection" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})"
|
||||
;;
|
||||
@@ -966,7 +976,7 @@ for udi in $volumes; do
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660|unformatted) ;;
|
||||
ext2|ext3|reiserfs) ;;
|
||||
ext2|ext3|ext4|reiserfs|reiser4) ;;
|
||||
*) dcop @dcopid KommanderIf "addListItem(QString,QString,int)" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
dcop @dcopid KommanderIf "setSelection" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})"
|
||||
;;
|
||||
@@ -1025,6 +1035,33 @@ done
|
||||
<set>AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TextEdit">
|
||||
<property name="name">
|
||||
<cstring>installlog</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>60</y>
|
||||
<width>540</width>
|
||||
<height>360</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="hScrollBarMode">
|
||||
<enum>AlwaysOn</enum>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>LogText</enum>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>launchinstall</cstring>
|
||||
@@ -1078,7 +1115,7 @@ _EOF
|
||||
|
||||
@if (@confirmBox.checked); then
|
||||
@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), back, false)
|
||||
@exec("/usr/share/openmamba/bootrecover/bootrecover.sh -y @dcopid &> ~/.bootrecover.log")
|
||||
@exec("sudo /usr/share/openmamba/bootrecover/bootrecover.sh -y @dcopid &> ~/.bootrecover.log")
|
||||
@execBegin
|
||||
dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
|
||||
@execEnd
|
||||
@@ -1113,33 +1150,6 @@ _EOF
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TextEdit">
|
||||
<property name="name">
|
||||
<cstring>installlog</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>60</y>
|
||||
<width>540</width>
|
||||
<height>360</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="hScrollBarMode">
|
||||
<enum>AlwaysOn</enum>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>LogText</enum>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<images>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# openmamba boot loader recovery script
|
||||
# Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2007-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
# Released under the terms of the GNU GPLv3 License
|
||||
|
||||
@@ -72,61 +72,6 @@ Installation time: $TIME_ELAPSED minutes"
|
||||
done
|
||||
}
|
||||
|
||||
function find_driver_for_udi() {
|
||||
local found_driver parent_udi
|
||||
|
||||
parent_udi=$1
|
||||
while [ ! "$found_driver" -a "$parent_udi" != "/org/freedesktop/Hal/devices/computer" ]; do
|
||||
parent_udi=`hal-get-property --udi $parent_udi --key info.parent 2>/dev/null`
|
||||
[ "`hal-get-property --udi $parent_udi --key info.bus 2>/dev/null`" = "pci" ] &&
|
||||
found_driver=`hal-get-property --udi $parent_udi --key info.linux.driver 2>/dev/null`
|
||||
done
|
||||
if [ "$found_driver" ]; then
|
||||
echo $found_driver
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function find_remapped_device() {
|
||||
|
||||
local REMAPPED_INSTALL_DEVICE
|
||||
|
||||
tempfile=`tempfile 2>/dev/null`
|
||||
mapfile=`tempfile 2>/dev/null`
|
||||
|
||||
# generate current volumes sorted list with driver information
|
||||
storages=`hal-find-by-capability --capability storage`
|
||||
for s in $storages; do
|
||||
device=`hal-get-property --udi $s --key block.device`
|
||||
linux_driver=`find_driver_for_udi $s`
|
||||
[ "${device:5:2}" = "sd" ] && \
|
||||
echo "${device:0:8} $linux_driver" >> $tempfile
|
||||
done
|
||||
# sort
|
||||
cat $tempfile|sort > $mapfile
|
||||
rm -f $tempfile
|
||||
|
||||
LETTERS=(a b c d e f g h i j k l m n o p q r s t u v w x y z)
|
||||
|
||||
CURR_DRIVE_LETTER=0
|
||||
while read line; do
|
||||
set -- $line
|
||||
[ "$1" = "$INSTALL_DISK_DEVICE" ] && REMAPPED_INSTALL_DEVICE="${INSTALL_DEVICE:0:7}${LETTERS[CURR_DRIVE_LETTER]}${INSTALL_DEVICE:8:2}"
|
||||
[ "$2" = "$INSTALL_DRIVER" ] && {
|
||||
DEV_NAME_ORIG=(${DEV_NAME_ORIG[*]} $1)
|
||||
DEV_NAME_DEST=(${DEV_NAME_DEST[*]} ${1:0:7}${LETTERS[CURR_DRIVE_LETTER]})
|
||||
let CURR_DRIVE_LETTER+=1
|
||||
}
|
||||
done < $mapfile
|
||||
[ "$REMAPPED_INSTALL_DEVICE" ] || REMAPPED_INSTALL_DEVICE=$INSTALL_DEVICE
|
||||
echo $REMAPPED_INSTALL_DEVICE
|
||||
|
||||
rm -f $mapfile
|
||||
rm -f $tmpfile
|
||||
}
|
||||
|
||||
DCOPID=$2
|
||||
|
||||
echo $"\
|
||||
@@ -166,9 +111,6 @@ MOUNTPOINT=$INSTALL_MOUNTPOINT
|
||||
abort
|
||||
}
|
||||
|
||||
REMAPPED_INSTALL_DEVICE=`find_remapped_device $INSTALL_DEVICE`
|
||||
echo $"Install device $INSTALL_DEVICE will be known as $REMAPPED_INSTALL_DEVICE in the installed system" | tee -a $LOG_FILE
|
||||
|
||||
dcop_write $"Binding system dirs to new mountpoint..." 73
|
||||
mount -o bind /dev $MOUNTPOINT/dev || {
|
||||
echo $"Error: could not mount $MOUNTPOINT/dev; aborting." >&2
|
||||
@@ -246,10 +188,6 @@ _EOF
|
||||
}
|
||||
|
||||
chroot $MOUNTPOINT update-grub | tee -a $LOGFILE
|
||||
|
||||
[ "${INSTALL_DEVICE}" != "${REMAPPED_INSTALL_DEVICE}" ] && \
|
||||
sed -i "s|root=/dev/${INSTALL_DEVICE:5:5}|root=/dev/${REMAPPED_INSTALL_DEVICE:5:5}|" \
|
||||
$MOUNTPOINT/boot/grub/grub.cfg
|
||||
else
|
||||
echo $"Info: skipping bootloader installation" | tee -a $LOG_FILE
|
||||
fi
|
||||
|
@@ -9,6 +9,3 @@ Icon=bootrecover
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
X-KDE-RootOnly=true
|
||||
X-KDE-SubstituteUID=true
|
||||
X-KDE-Username=root
|
||||
|
@@ -12,3 +12,24 @@ Action=org.freedesktop.packagekit.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=org.kde.ufw.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=gufw.daemon.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=org.freedesktop.NetworkManager.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
@@ -7,7 +7,7 @@ Exec=kmdr-executor /usr/share/openmamba/mambabase/mambabase.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
@@ -7,7 +7,7 @@ Exec=kmdr-executor /usr/share/openmamba/mambabase/mambabase.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
@@ -102,7 +102,7 @@ msgstr ""
|
||||
|
||||
#: _from_rc.cc:17
|
||||
msgid "openmamba installation/updates"
|
||||
msgstr "instalación/actualización de openmamba"
|
||||
msgstr "Instalación/actualización de openmamba"
|
||||
|
||||
#: _from_rc.cc:18
|
||||
msgid "Off&ice packages (OpenOffice, Groupware, PDA Syncronization, ...)"
|
||||
|
@@ -102,7 +102,7 @@ msgstr ""
|
||||
|
||||
#: _from_rc.cc:17
|
||||
msgid "openmamba installation/updates"
|
||||
msgstr "installazioni/aggiornamenti di openmamba"
|
||||
msgstr "Installazioni/aggiornamenti di openmamba"
|
||||
|
||||
#: _from_rc.cc:18
|
||||
msgid "Off&ice packages (OpenOffice, Groupware, PDA Syncronization, ...)"
|
||||
|
@@ -7,7 +7,7 @@ Exec=kmdr-executor /usr/share/openmamba/mambareport/mambareport.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
@@ -50,7 +50,7 @@ function catfile() {
|
||||
|
||||
FILENAME=$1
|
||||
FILEDESC=$2
|
||||
|
||||
|
||||
for c in $FILENAME; do
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
@@ -68,25 +68,16 @@ function tailfile() {
|
||||
|
||||
FILENAME=$1
|
||||
FILEDESC=$2
|
||||
|
||||
for c in $1; do
|
||||
|
||||
for c in $1; do
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
****************************************************************
|
||||
* File '$c' (first lines): $FILEDESC
|
||||
* File '$c' (last 200 lines): $FILEDESC
|
||||
****************************************************************
|
||||
_EOF
|
||||
|
||||
head -n 100 ${ROOT}/$c >> $TEMPFILE
|
||||
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
****************************************************************
|
||||
* File '$c' (last lines): $FILEDESC
|
||||
****************************************************************
|
||||
_EOF
|
||||
|
||||
tail -n 100 ${ROOT}/$c >> $TEMPFILE
|
||||
tail -n 200 ${ROOT}/$c >> $TEMPFILE
|
||||
done
|
||||
|
||||
}
|
||||
@@ -169,7 +160,7 @@ catfile /etc/openmamba-release "release information"
|
||||
catfile /etc/sysconfig/machine "machine information from BIOS"
|
||||
catfile /proc/cpuinfo "processor(s) information"
|
||||
catfile /proc/meminfo "System memory information"
|
||||
catcommand /usr/sbin/lspci -nn "PCI hardware information (short)"
|
||||
catcommand "/usr/sbin/lspci -nn" "PCI hardware information (short)"
|
||||
catcommand /usr/sbin/lsusb "USB hardware information"
|
||||
catcommand /sbin/lsmod "Loadel kernel modules"
|
||||
catcommand "rpm -qa|grep kernel-mamba" "Installed kernel packages"
|
||||
@@ -185,14 +176,20 @@ catfile /proc/cmdline "kernel startup command line"
|
||||
catcommand "ls -l /boot" "boot files"
|
||||
catfile /boot/grub/grub.cfg "GRUB configuration"
|
||||
catfile /var/log/dmesg.log "kernel startup messages"
|
||||
catcommand /bin/dmesg "last kernel messages"
|
||||
catfile "/etc/modprobe.d/*" "modules configuration"
|
||||
catcommand "/usr/sbin/lsinitrd /boot/initramfs-`uname -r`.img" "running kernel initial ramdisk"
|
||||
|
||||
# system boot problems
|
||||
catfile /var/log/initd.sysinit.start "system init logfile"
|
||||
catfile /var/log/initd.*.start "runlevel init logfile"
|
||||
catfile "/var/log/initd.3.start" "runlevel 3 init logfile"
|
||||
catfile "/var/log/initd.5.start" "runlevel 5 init logfile"
|
||||
catfile /var/log/postplug.log "system configuration tool"
|
||||
|
||||
# Suspend/Powersave
|
||||
catfile /var/log/pm-powersave.log "Current powersave logfile"
|
||||
catfile /var/log/pm-suspend.log "Last suspend logfile"
|
||||
|
||||
# Graphical subsystem
|
||||
catfile /var/log/Xorg.0.log "Xorg startup log"
|
||||
catfile /etc/X11/xorg.conf "Xorg configuration"
|
||||
@@ -211,7 +208,13 @@ catcommand "/sbin/route -n" "Routing table"
|
||||
catfile "/etc/sysconfig/network" "General network configuration"
|
||||
catfile "/etc/resolv.conf" "DNS configuration"
|
||||
|
||||
# Disks
|
||||
for d in /dev/sd[a-z]; do
|
||||
catcommand "smartctl -ia $d" "S.M.A.R.T. status for device $d"
|
||||
done
|
||||
|
||||
# Installation
|
||||
catcommand "rpm -qa --last | head -n 100" "Last installed packages"
|
||||
catfile "/var/log/install-*" "Installation log"
|
||||
catfile /var/log/Xorg.5.log "Xorg installation test log"
|
||||
|
||||
|
@@ -27,6 +27,7 @@ INPUT_FILE=/root/.installer.conf
|
||||
#/opt/kde3/bin/dcopserver
|
||||
xinit /opt/kde3/bin/kmdr-executor /usr/share/openmamba/mambawelcome/mambawelcome.kmdr -- -br -dpi 100
|
||||
#/opt/kde3/bin/dcopserver_shutdown
|
||||
killall -9 dcopserver
|
||||
|
||||
[ -e /root/.mambawelcome-not-completed ] && {
|
||||
rm -f /root/.mambawelcome-not-completed
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Messaggi del kernel durante l'avvio del sistema
|
||||
Comment[fr]=Messages du noyau lors du démarrage du système
|
||||
Exec=@distrobindir@/showlog /var/log/dmesg.log "Kernel init messages" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Informazioni sull'avvio dei servizi di runlevel 5
|
||||
Comment[fr]=Messages au démarrage des services du runlevel 5
|
||||
Exec=@distrobindir@/showlog /var/log/initd.5.start "Runlevel 5 init log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Informazioni riguardo all'ultimo spegnimento del sistema
|
||||
Comment[fr]=Messages du système lors du dernier arrêt
|
||||
Exec=@distrobindir@/showlog /var/log/initd.0.stop "Last shutdown log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Informazioni riguardo all'ultimo riavvio del sistema
|
||||
Comment[fr]=Messages du système lors du dernier redémarrage
|
||||
Exec=@distrobindir@/showlog /var/log/initd.6.stop "Last reboot log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Messaggi di avvio del sistema openmamba
|
||||
Comment[fr]=Messages au démerrage du système openmamba
|
||||
Exec=@distrobindir@/showlog /var/log/initd.sysinit.start "System init log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -7,7 +7,7 @@ Exec=/usr/share/openmamba/usbinstall/usbinstall.sh
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
X-KDE-RootOnly=true
|
||||
X-KDE-SubstituteUID=true
|
||||
X-KDE-Username=root
|
||||
|
@@ -17,8 +17,12 @@ filecpio=""~/openmamba-bootusb-it-snapshot-"$version".i586.cpio.gz""
|
||||
|
||||
TEXTDOMAIN=usbinstall
|
||||
TEXTDOMAINDIR=/usr/share/locale/
|
||||
# formattazione della chiavetta e installazione dei file necessari al boot di openmamba
|
||||
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
|
||||
# formattazione della chiavetta e installazione dei file necessari al boot di openmamba
|
||||
installa(){
|
||||
conferma=0
|
||||
chiave=$c
|
||||
@@ -97,21 +101,24 @@ exit 0
|
||||
}
|
||||
|
||||
scansione() {
|
||||
#scansione di hal alla ricerca di tutte le periferiche di archiviazione usb
|
||||
#ricerca di tutte le periferiche di archiviazione usb
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n`
|
||||
c=0
|
||||
for udi in $(/usr/bin/hal-find-by-capability --capability storage)
|
||||
do
|
||||
if [[ $(hal-get-property --udi $udi --key storage.removable) = "true" &&
|
||||
$(hal-get-property --udi $udi --key storage.drive_type) = "disk" ]]; then
|
||||
c=$((c+1))
|
||||
device[$c]=$(hal-get-property --udi $udi --key block.device)
|
||||
vendor[$c]=$(hal-get-property --udi $udi --key storage.vendor)
|
||||
model[$c]=$(hal-get-property --udi $udi --key storage.model)
|
||||
parent_udi=$(hal-find-by-property --key block.storage_device --string $udi)
|
||||
# mount[$c]=$(hal-get-property --udi $parent_udi --key volume.mount_point)
|
||||
# label[$c]=$(hal-get-property --udi $parent_udi --key volume.label)
|
||||
media_size[$c]=$(hal-get-property --udi $udi --key storage.removable.media_size)
|
||||
size[$c]=$(( ${media_size[$c]}/(1000*1000*1000)))
|
||||
|
||||
for dev in $devices; do
|
||||
native_path=`get_udisks_key $dev native-path`
|
||||
vend=`get_udisks_key $dev vendor`
|
||||
prod=`get_udisks_key $dev model`
|
||||
[ -e $native_path/partition ] && continue
|
||||
is_system_internal=`get_udisks_key $dev "system internal"`
|
||||
partition_scheme=`get_udisks_key $dev "scheme"`
|
||||
if [ "$is_system_internal" != "1" -a "$partition_scheme" = "mbr" ]; then
|
||||
c=$((c+1))
|
||||
device[$c]=$dev
|
||||
vendor[$c]=$vend
|
||||
model[$c]=$prod
|
||||
media_size[$c]=`get_udisks_key $dev size`
|
||||
size[$c]=$((${media_size[$c]}/(1000*1000*1000)))
|
||||
fi
|
||||
done
|
||||
if [ $c -eq 0 ]; then
|
||||
|
@@ -6,7 +6,7 @@ Exec=kmdr-executor /usr/share/openmamba/xramdr/xramdr.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
Reference in New Issue
Block a user