mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
commented not needed lines
This commit is contained in:
parent
8482e26833
commit
3d44fb50ba
@ -41,21 +41,21 @@
|
|||||||
# rm /etc/init.d/password
|
# rm /etc/init.d/password
|
||||||
# bei https --no-check-certificate als zusätzlicher Paramter
|
# bei https --no-check-certificate als zusätzlicher Paramter
|
||||||
if [[ "$1" == "start" ]]; then
|
if [[ "$1" == "start" ]]; then
|
||||||
cd /home/easy-wi
|
#cd /home/easy-wi
|
||||||
su easy-wi -c ./control
|
#su easy-wi -c ./control
|
||||||
sleep 30
|
#rm control.*
|
||||||
rm control.*
|
sleep 60
|
||||||
STRING=`wget --no-check-certificate -q -O - https://wi.domain.de/get_password.php | sed 's/^\xef\xbb\xbf//g'`
|
STRING=`wget --no-check-certificate -q -O - https://wi.domain.de/get_password.php | sed 's/^\xef\xbb\xbf//g'`
|
||||||
PASSWORD=`echo $STRING | awk -F ':' '{print $1}'`
|
PASSWORD=`echo $STRING | awk -F ':' '{print $1}'`
|
||||||
LICENCE=`echo $STRING | awk -F ':' '{print $2}'`
|
|
||||||
if ([[ "$PASSWORD" != "" ]] && [[ "$PASSWORD" != "old" ]]); then
|
if ([[ "$PASSWORD" != "" ]] && [[ "$PASSWORD" != "old" ]]); then
|
||||||
/usr/sbin/usermod -p `perl -e 'print crypt("'$PASSWORD'","Sa")'` root
|
/usr/sbin/usermod -p `perl -e 'print crypt("'$PASSWORD'","Sa")'` root
|
||||||
fi
|
fi
|
||||||
if ([[ "$LICENCE" != "" ]] && [[ "$LICENCE" != "old" ]]); then
|
#LICENCE=`echo $STRING | awk -F ':' '{print $2}'`
|
||||||
echo "$LICENCE" > /path/to/licencefile
|
#if ([[ "$LICENCE" != "" ]] && [[ "$LICENCE" != "old" ]]); then
|
||||||
chmod 000 /path/to/licencefile
|
# echo "$LICENCE" > /path/to/licencefile
|
||||||
chown username:gruppe /path/to/licencefile
|
# chmod 000 /path/to/licencefile
|
||||||
fi
|
# chown username:gruppe /path/to/licencefile
|
||||||
|
#fi
|
||||||
update-rc.d -f password remove
|
update-rc.d -f password remove
|
||||||
rm /etc/init.d/password
|
rm /etc/init.d/password
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user