Last active
April 20, 2016 22:38
-
-
Save mbmccormick/6cf4e31f1fd25ec8b3fb to your computer and use it in GitHub Desktop.
logmein-hamachi-2.1.0.119-armhf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HAMACHI_DST=/opt/logmein-hamachi | |
if [ -x /opt/logmein-hamachi/uninstall.sh ] ; then | |
echo Removing previous version .. | |
/opt/logmein-hamachi/uninstall.sh | |
fi | |
echo Copying files into $HAMACHI_DST .. | |
mkdir -p "$HAMACHI_DST/bin" | |
install -m 755 hamachid "$HAMACHI_DST/bin" | |
install -m 755 dnsup "$HAMACHI_DST/bin" | |
install -m 755 dnsdown "$HAMACHI_DST/bin" | |
install -m 755 uninstall.sh "$HAMACHI_DST" | |
install -m 444 README "$HAMACHI_DST" | |
install -m 444 LICENSE "$HAMACHI_DST" | |
install -m 444 CHANGES "$HAMACHI_DST" | |
echo Creating LogMeIn Hamachi symlink .. | |
ln -sf "$HAMACHI_DST/bin/hamachid" /usr/bin/hamachi | |
if [ ! -x /dev/net/tun ] ; then | |
echo Creating TunTap .. | |
mkdir -p /dev/net | |
mknod /dev/net/tun c 10 200 | |
chmod 0666 /dev/net/tun | |
fi | |
echo Installing LogMeIn Hamachi service .. | |
install -m 755 hamachi-init /etc/init.d/logmein-hamachi | |
update-rc.d logmein-hamachi defaults | |
echo Starting LogMeIn Hamachi service .. | |
/etc/init.d/logmein-hamachi start | |
echo LogMeIn Hamachi is installed. See README for what to do next. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment