source: ipk/source.sh4/network_dropbear/CONTROL/postrm @ 34137

Last change on this file since 34137 was 34137, checked in by tobayer, 6 years ago

[titan] add dropbear ssh for sh4

File size: 632 bytes
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4rm -rf /mnt/swapextensions/bin/dropbear > /dev/null
5rm -rf /mnt/swapextensions/bin/dbclient > /dev/null
6rm -rf /mnt/swapextensions/bin/dropbearkey > /dev/null
7rm -rf /mnt/swapextensions/bin/dropbearconvert > /dev/null
8rm -rf /mnt/swapextensions/bin/ssh > /dev/null
9rm -rf /mnt/swapextensions/bin/scp > /dev/null
10rm -rf /mnt/swapextensions/bin/sftp-server > /dev/null
11
12rm -rf /var/.ssh > /dev/null
13rm -rf /mnt/dropbear > /dev/null
14
15grep dropbear /var/etc/inetd.conf > /dev/null
16if [ $? = 0 ]; then
17        killall -9 inetd > /dev/null
18        sed -i '/dropbear/d' /var/etc/inetd.conf
19        /usr/sbin/inetd > /dev/null
20fi
21
22exit 0
Note: See TracBrowser for help on using the repository browser.