oemapp相关命令

  [oracle@Linux oracle] $oemapp dbastudio
   [oracle@Linux oracle] $oemapp console
   [oracle@Linux oracle] $oemapp txtmgr
   [oracle@Linux oracle] $oemapp ocmcli
   [oracle@Linux oracle] $oemapp lmviewer
   [oracle@Linux oracle] $oemapp ocm
   [oracle@Linux oracle] $oemapp esmsrv
   [oracle@Linux oracle] $oemapp opm
   [oracle@Linux oracle] $oemapp cpta
   [oracle@Linux oracle] $oemapp esm
   [oracle@Linux oracle] $oemapp jdbctest
   [oracle@Linux oracle] $oemapp oemutil
   [oracle@Linux oracle] $oemapp topsess
   [oracle@Linux oracle] $oemapp dataguard
   [oracle@Linux oracle] $oemapp worksheet
   [oracle@Linux oracle] $oemapp cp
   [oracle@Linux oracle] $oemapp sdoadvisor
   [oracle@Linux oracle] $oemapp pm

#!/bin/sh #mount oem_app dir SYSCFG_oem_app_ubifs_MNT=/tmp/syscfg SLOT="$(find_system_slot)" echo "Active system$SLOT" # return 1 on failed 0 for success oem_app_ubifs_volume_support() { # for SDTIM support mtdpart_idx_oem_app="$(find_mtd_index oem_app$SLOT-mount)" if [ -z "$mtdpart_idx_oem_app" ] then mtdpart_idx_oem_app="$(find_mtd_index oem_app$SLOT)" if [ -z "$mtdpart_idx_oem_app" ] then # oem_app may has only one partition mtdpart_idx_oem_app="$(find_mtd_index oem_app)" [ -z "$mtdpart_idx_oem_app" ] && return 1 fi fi grep -qs ubifs /proc/filesystems || return 1 echo "found oem_app partition and ubifs support" return 0 } __oem_app_ubifs_mount() { recover_oem_app_ubifs=0 [ ! -e /dev/ubi2 ] && ubiattach /dev/ubi_ctrl -m $mtdpart_idx_oem_app -d 2 || recover_oem_app_ubifs=1 if [ $recover_oem_app_ubifs -eq 0 ] then ubi2_nod_id=`cat /sys/class/ubi/ubi2/dev | tr -s ":" " "` [ ! -e /dev/ubi2 ] && mknod /dev/ubi2 c ${ubi2_nod_id} if [ ! -e /sys/class/ubi/ubi2_0/dev ] then # no volume recover_oem_app_ubifs=1 else # check for "oem_app" volume ubi2_0_nod_id=`cat /sys/class/ubi/ubi2_0/dev | tr -s ":" " "` [ ! -e /dev/ubi2_0 ] && mknod /dev/ubi2_0 c ${ubi2_0_nod_id} { ubinfo /dev/ubi2_0 | grep "oem_app" ; } || \ recover_oem_app_ubifs=1 fi fi if [ $recover_oem_app_ubifs -eq 1 ] then echo "err: ubi attach failed, oem_app partition damaged?" ##need reboot and switch other slot fi mount -t ubifs -o ro,noatime,bulk_read ubi2_0 /oemapp return 0 } oem_app_ubifs_mount() { __oem_app_ubifs_mount || { echo "oem_app mount fail" #mtd erase oem_app$SLOT #__oem_app_ubifs_mount } return 0 } do_mount_oem_app_ubifs_overlay() { { oem_app_ubifs_volume_support && \ oem_app_ubifs_mount ; } } boot_hook_add preinit_main do_mount_oem_app_ubifs_overlay 解释下这个骄傲本的作用
最新发布
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值