Ignore:
Timestamp:
Feb 14, 2022, 12:29:43 PM (4 years ago)
Author:
obi
Message:

fix plugin permtime

Location:
ipk/source.sh4/network_dropbear/CONTROL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/network_dropbear/CONTROL/postinst

    r34137 r45683  
    1414mkdir -p /mnt/dropbear
    1515
    16 if [ ! -e /mnt/dropbear/dropbear_rsa_host_key ]; then
     16if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
    1717        dropbearkey -t rsa -s 2048 -f /mnt/dropbear/dropbear_rsa_host_key
    1818fi
    1919
    2020grep dropbear /var/etc/inetd.conf > /dev/null
    21 if [ $? = 1 ]; then
     21if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
    2222        killall -9 inetd > /dev/null
    2323        echo "22 stream tcp nowait root /mnt/swapextensions/bin/dropbear dropbear -i -a -B -p 22" >> /var/etc/inetd.conf
  • ipk/source.sh4/network_dropbear/CONTROL/postrm

    r34137 r45683  
    1414
    1515grep dropbear /var/etc/inetd.conf > /dev/null
    16 if [ $? = 0 ]; then
     16if [ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ];then
    1717        killall -9 inetd > /dev/null
    1818        sed -i '/dropbear/d' /var/etc/inetd.conf
Note: See TracChangeset for help on using the changeset viewer.