Changeset 41101 for ipk/source


Ignore:
Timestamp:
Nov 3, 2017, 5:53:56 PM (2 years ago)
Author:
andy-1
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/tools_settime/CONTROL/postinst

    r41100 r41101  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/mnt/bin/settime.sh"
    5 
    6 if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
    7         sed s#_type_#"MNT"#g -i "$INSTDIR/mnt/bin/settime.sh"
    8 elif [ "/var/swap" == "$INSTDIR" ]; then
    9         sed s#_type_#"SWAP"#g -i "$INSTDIR/mnt/bin/settime.sh"
    10 else
    11         sed s#_type_#"VAR"#g -i "$INSTDIR/mnt/bin/settime.sh"   
    12 fi
    132
    143
    15 if [ ! -e "$INSTDIR/mnt/config/usercmd.sh" ]; then
     4
     5if [ ! -e "/mnt/config/usercmd.sh" ]; then
    166        echo "use tpk config file: usercmd.sh"
    17         echo "rename $INSTDIR/mnt/config/usercmd.sh.old > $INSTDIR/mnt/config/usercmd.sh"
    18         mv "$INSTDIR/mnt/config/usercmd.sh.old" "$INSTDIR/mnt/config/usercmd.sh"
     7        echo "rename /mnt/config/usercmd.sh.usercmd > /mnt/config/usercmd.sh"
     8        mv "/mnt/config/usercmd.sh.usercmd" "/mnt/config/usercmd.sh"
    199else
    2010        echo "found user config file: usercmd.sh"
    21         echo "skip tpk config file: usercmd.sh.old"
     11        echo "skip tpk config file: usercmd.sh.usercmd"
    2212fi
    2313
Note: See TracChangeset for help on using the changeset viewer.