Giter VIP home page Giter VIP logo

wpa_supplicant_injector's Introduction

Jacek Kuźniarski

I get paid for working on Android apps since 2013. Linux stuff I do in my spare time since 2006.

I sometimes go by Joel Bodega (easier one for non Polish folks)

  • Kotlin for Android, Bash for Linux/BSD
  • But also Java, C#, Python, C/++
  • If you posted your code on reddit, I probably left CR over @github
  • I usually open source designs unrelated to software

wpa_supplicant_injector's People

Contributors

bhm avatar rsp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rsp

wpa_supplicant_injector's Issues

Hardcoded mount point name in $PWD

Currently the script tries to create a directory for the mount point in the current working directory (which may or may not be writable, depending on how the user runs the script) and it uses a hardcoded name (temporary_raspbian_mount_point).

mktemp -d can be used to safely create a directory that is guaranteed to not exist before and (by default) is created in the system's default temporary directory for the user who runs the script (but this can be changed if needed).

If you need to create the mount point in the current working directory then you can still use something like MOUNT_POINT=$(mktemp -d temporary_raspbian_mount_point.XXXXXX) where mktemp will change XXXXXX to a random string to avoid clashes and race conditions. It will also create the directory so mkdir will not be needed.

Use rmdir in place of rm -rf

Script should be using rmdir that deletes an empty directory only.

It should prevent emptying the image if it is not unmounted properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.