diff options
Diffstat (limited to 'upgrade')
-rwxr-xr-x | upgrade/update-init.sh | 26 | ||||
-rwxr-xr-x | upgrade/update.sh | 32 |
2 files changed, 0 insertions, 58 deletions
diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh deleted file mode 100755 index 371abfe..0000000 --- a/upgrade/update-init.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# RW update initialize script -# -PATH=/bin:/usr/bin:/sbin:/usr/sbin -OWNER_HOME=/opt/usr/home/owner - -USER_DISK=`ls /dev/disk/by-partlabel/ | grep -i user` -USER_MNT=/opt/usr - -# Mount user partition (specific to lazy mount) -mount | grep "$USER_MNT" > /dev/null - -if [ $? != "0" ] -then - /usr/bin/mount PARTLABEL=$USER_DISK $USER_MNT -fi - -# Create home directory -test ! -e /opt/usr/home && mkdir -p /opt/usr/home -chsmack -a "_" /opt/usr/home -cp -af /usr/share/upgrade/data/home/owner /opt/usr/home - -# Copy 3.0 rpm db -rm -rf /var/lib/rpm/* -cp -af /usr/share/upgrade/data/rpm/* /var/lib/rpm diff --git a/upgrade/update.sh b/upgrade/update.sh deleted file mode 100755 index 0985749..0000000 --- a/upgrade/update.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# RW update script -# -PATH=/bin:/usr/bin:/sbin:/usr/sbin - -PATCH_DIR=/usr/share/upgrade/scripts -RESULT_FILE=/upgrade_result -RUN=/bin/sh - -# Change to normal mode from next booting -rm /system-update -rm /usr/lib/udev/rules.d/99-sdb-switch.rules - -# Execute update scripts -if [ ! -d ${PATCH_DIR} ] -then - echo "FAIL: Upgrade directory does not exist" > ${RESULT_FILE} -else - PATCHES=`/bin/ls ${PATCH_DIR}` - - for PATCH in ${PATCHES}; do - ${RUN} ${PATCH_DIR}/${PATCH} - done - - sync - - echo "SUCCESS: Upgrade successfully finished" > ${RESULT_FILE} -fi - -# Reboot -reboot -f |