Community gatherings on Freenode at #tinycorelinux (webchat)
#!/bin/bash# Installer of Skype.set -eNAME=skypeVERSION=2.1.0.47DOWNLOAD=http://www.skype.com/go/getskype-linux-beta-staticSOURCE=skype_static-2.1.0.47.tar.bz2MD5SUM=84cd16086d499b766a6ea9524271c0b9TMPDIR=/tmp/skypedownload-2.1.0.47PKG="$TMPDIR"/pkgLIST="$TMPDIR"/"$NAME".listSRCDIR=/tmpdownload() {cd "$SRCDIR"if [ -e "$SOURCE" ]; then if [ $(md5sum "$SOURCE" | cut -c1-32) != "$MD5SUM" ]; then rm "$SOURCE" fifiif [ ! -e "$SOURCE" ]; then wget "$DOWNLOAD"/"$SOURCE"fiif [ $(md5sum "$SOURCE" | cut -c1-32) = "$MD5SUM" ]; then echo "md5sum passed."else echo "Download failed. aborting" exit 1;fi}if [ -e "$TMPDIR" ]; then rm -r "$TMPDIR"fimkdir -p "$TMPDIR"if [ ! -e "$PKG"/usr/local/tce.menu ]; then mkdir -p "$PKG"/usr/local/tce.menufidownload &&tar xzvf "$SRCDIR"/"$SOURCE" -C "$PKG"/usr/local/mv "$PKG"/usr/local/skype_static-2.1.0.47 "$PKG"/usr/local/skypemkdir -p "$PKG"/usr/local/tce.menuecho "<JWM>" > "$PKG"/usr/local/tce.menu/skypeecho "<Program label="\"Skype"\">/usr/local/skype/skype</Program>" >> "$PKG"/usr/local/tce.menu/skypeecho "</JWM>" >> "$PKG"/usr/local/tce.menu/skypecd "$PKG"sudo mksquashfs ./ /tmp/skype.tcz rm -r "$TMPDIR" "$SRCDIR"/"$SOURCE"echo "skype.tcz is now in your /tmp directory."sleep 4
yep, also did that (cd to /usr/local/bin where the skype.sh script is, then: sudo ./skype.sh) with same result; don't know what i am missing
i have copied skype.sh to home and changed owner to tc:staff with no result; the first line in the script is:!/bin/bashi think it should work since bash has been installed
#!/bin/bash# Installer of Skype.set -eNAME=skypeVERSION=2.1.0.47DOWNLOAD=http://www.skype.com/go/getskype-linux-beta-staticSOURCE=skype_static-2.1.0.47.tar.bz2MD5SUM=84cd16086d499b766a6ea9524271c0b9TMPDIR=/tmp/skypedownload-2.1.0.47PKG="$TMPDIR"/pkgLIST="$TMPDIR"/"$NAME".listSRCDIR=/tmpdownload() {cd "$SRCDIR"if [ -e "$SOURCE" ]; then if [ $(md5sum "$SOURCE" | cut -c1-32) != "$MD5SUM" ]; then rm "$SOURCE" fifiif [ ! -e "$SOURCE" ]; then wget "$DOWNLOAD"/"$SOURCE"fiif [ $(md5sum "$SOURCE" | cut -c1-32) = "$MD5SUM" ]; then echo "md5sum passed."else echo "Download failed. aborting" exit 1;fi}if [ -e "$TMPDIR" ]; then rm -r "$TMPDIR"fimkdir -p "$TMPDIR"if [ ! -e "$PKG"/usr/local/tce.menu ]; then mkdir -p "$PKG"/usr/local/tce.menufidownload &&tar xzvf "$SRCDIR"/"$SOURCE" -C "$PKG"/usr/local/mv "$PKG"/usr/local/skype_static-2.1.0.47 "$PKG"/usr/local/skypemkdir -p "$PKG"/usr/local/tce.menuecho "<JWM>" > "$PKG"/usr/local/tce.menu/skypeecho "<Program label="\"Skype"\">/usr/local/skype/skype</Program>" >> "$PKG"/usr/local/tce.menu/skypeecho "</JWM>" >> "$PKG"/usr/local/tce.menu/skypecd "$PKG"######## Add Script SCRIPT="usr/local/bin/skype"sudo mkdir "usr/local/bin" sudo echo "#!/bin/sh" >>"$SCRIPT"sudo echo "/usr/local/skype/skype" >>"$SCRIPT"sudo echo "exit 0" >>"$SCRIPT"sudo chmod +x "$SCRIPT"####################sudo mksquashfs ./ /tmp/skype.tcz rm -r "$TMPDIR" "$SRCDIR"/"$SOURCE"echo "skype.tcz is now in your /tmp directory."sleep 4
thanks a lot for your new script, i can make it executable, everything works fine
#!/bin/bash# Installer of Skype.set -eNAME=skypeVERSION=2.1.0.47DOWNLOAD=http://www.skype.com/go/getskype-linux-beta-staticSOURCE=skype_static-2.1.0.47.tar.bz2MD5SUM=84cd16086d499b766a6ea9524271c0b9TMPDIR=/tmp/skypedownload-2.1.0.47PKG="$TMPDIR"/pkgLIST="$TMPDIR"/"$NAME".listSRCDIR=/tmpdownload() {cd "$SRCDIR"if [ -e "$SOURCE" ]; then if [ $(md5sum "$SOURCE" | cut -c1-32) != "$MD5SUM" ]; then rm "$SOURCE" fifiif [ ! -e "$SOURCE" ]; then wget "$DOWNLOAD"/"$SOURCE"fiif [ $(md5sum "$SOURCE" | cut -c1-32) = "$MD5SUM" ]; then echo "md5sum passed."else echo "Download failed. aborting" exit 1;fi}if [ -e "$TMPDIR" ]; then rm -r "$TMPDIR"fimkdir -p "$TMPDIR"if [ ! -e "$PKG"/usr/local/tce.menu ]; then mkdir -p "$PKG"/usr/local/tce.menufidownload &&tar xjvf "$SRCDIR"/"$SOURCE" -C "$PKG"/usr/local/mv "$PKG"/usr/local/skype_static-2.1.0.47 "$PKG"/usr/local/skypemkdir -p "$PKG"/usr/local/tce.menuecho "<JWM>" > "$PKG"/usr/local/tce.menu/skypeecho "<Program label="\"Skype"\">/usr/local/skype/skype</Program>" >> "$PKG"/usr/local/tce.menu/skypeecho "</JWM>" >> "$PKG"/usr/local/tce.menu/skypecd "$PKG"######## Add Script mkdir usr/local/binsudo chmod 775 usr/local/bin cat <<EOF> usr/local/bin/skype#!/bin/sh/usr/local/skype/skypeexit 0EOFsudo chmod +x usr/local/bin/skype sudo chown -R root:staff ./sudo chmod 775 usr/local/tce.* ####################sudo mksquashfs ./ /tmp/skype.tcz sudo rm -r "$TMPDIR" "$SRCDIR"/"$SOURCE"echo "skype.tcz is now in your /tmp directory."sleep 4