删除废弃代码
This commit is contained in:
parent
236880855b
commit
dc4f547e5f
|
@ -286,7 +286,6 @@ NEED_BACKUP=
|
|||
NEED_RESTORE=
|
||||
NEED_ROLLBACK=
|
||||
NEED_RETAIN_USERDATA=
|
||||
NOMAL_START=
|
||||
# 针对 BACKUP_FLAG 为简单字符串(非键值对)的情况,可以这样获取内核参数。
|
||||
for x in $(cat /proc/cmdline); do
|
||||
case $x in
|
||||
|
@ -308,7 +307,6 @@ for x in $(cat /proc/cmdline); do
|
|||
FACTORY_RESTORE=y
|
||||
;;
|
||||
*)
|
||||
NOMAL_START=y
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
@ -516,24 +514,6 @@ if [ "$NEED_ROLLBACK" = "y" ]; then
|
|||
reboot -f
|
||||
fi
|
||||
|
||||
#出厂还原时用户有残留
|
||||
if [ "x${NOMAL_START}" = "xy" ]; then
|
||||
bootinfo=${rootmnt}/etc/.bootinfo
|
||||
backuptool_hook=${rootmnt}/etc/backuptool_hook
|
||||
if [ -e $bootinfo ]; then
|
||||
sed -n 's/^CMD=//g'p $bootinfo > $backuptool_hook
|
||||
sed -i '/^CMD=/d' $bootinfo
|
||||
if `sed -n '1p' $backuptool_hook`; then
|
||||
mount_fstab_efi ${rootmnt} mount
|
||||
while read LINE
|
||||
do
|
||||
eval "$LINE"
|
||||
done < $backuptool_hook
|
||||
fi
|
||||
rm -rf $backuptool_hook
|
||||
fi
|
||||
fi
|
||||
|
||||
# 否则
|
||||
# TODO 执行mount_fstab_efi ${rootmnt} mount备份操作
|
||||
|
||||
|
|
Loading…
Reference in New Issue