Ignore:
Timestamp:
Jan 23, 2019, 11:00:20 PM (10 months ago)
Author:
obi
Message:

test arm oebuile

Location:
ipk/source.arm/tools_sispmctl/CONTROL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.arm/tools_sispmctl/CONTROL/postinst

    r41781 r43290  
    66        mv "$PLUGINDIR/sispmctl.conf" "$PLUGINDIR/sispmctl.conf_org"
    77        cp /tmp/sispmctl.conf "$PLUGINDIR/sispmctl.conf"
    8         rm /tmp/sispmctl.conf >/dev/null 2>&1
    9        
    10         mv "$PLUGINDIR/g1_script.sh" "$PLUGINDIR/bin/g1_script.sh_org" >/dev/null 2>&1
    11         mv "$PLUGINDIR/g2_script.sh" "$PLUGINDIR/bin/g2_script.sh_org" >/dev/null 2>&1
    12         mv "$PLUGINDIR/g3_script.sh" "$PLUGINDIR/bin/g3_script.sh_org" >/dev/null 2>&1
    13         mv "$PLUGINDIR/g4_script.sh" "$PLUGINDIR/bin/g4_script.sh_org" >/dev/null 2>&1
    14        
    15         cp /tmp/g1_script.sh "$PLUGINDIR/bin/g1_script.sh" >/dev/null 2>&1
    16         cp /tmp/g2_script.sh "$PLUGINDIR/bin/g2_script.sh" >/dev/null 2>&1
    17         cp /tmp/g3_script.sh "$PLUGINDIR/bin/g3_script.sh" >/dev/null 2>&1
    18         cp /tmp/g4_script.sh "$PLUGINDIR/bin/g4_script.sh" >/dev/null 2>&1
     8        rm /tmp/isispmctl.conf
    199fi
    2010
    21 if [ ! -d /mnt/plugin ]; then
    22         mkdir -p /mnt/plugin
    23 fi
    24 if [ ! -f /mnt/plugin/ps01sispm ]; then
    25         cp "$PLUGINDIR/ps01sispm_dummy" /mnt/plugin/ps01sispm
    26         cp "$PLUGINDIR/pe01sispm_dummy" /mnt/plugin/pe01sispm
     11cp "$PLUGINDIR/lib/libusb-0.1.so.4" "/usr/lib/libusb-0.1.so.4"
     12
     13if [ -e /etc/.oebuild ];then
     14        opkg update
     15        opkg install titan-plugin-sispmctl --dest $1
    2716fi
    2817
    29 
    3018exit 0
  • ipk/source.arm/tools_sispmctl/CONTROL/postrm

    r41768 r43290  
    44
    55rm -r "$PLUGINDIR" >/dev/null 2>&1
    6 rm /mnt/plugin/ps01sispm
    7 rm /mnt/plugin/pe01sispm
     6
     7if [ -e /etc/.oebuild ];then
     8        opkg remove titan-plugin-sispmctl --dest $1
     9fi
    810
    911exit 0
Note: See TracChangeset for help on using the changeset viewer.