Code Monkey home page Code Monkey logo

fake-uname's Introduction

fake uname

Tool to fake the output of the 'uname' command in chroot and other enviroments to adjust the used kernel version in uname calling Makefiles.

For example to prepare the system to use fake-uname just rehash uname from /bin/uname to /tmp/uname with the following command: hash -p /tmp/uname uname

currently supported options

-r, --kernel-release     Release‐Nummer des Kernels ausgeben
-m, --machine            print the machine hardware name

missing options

-a, --all                alle Informationen ausgeben, in der folgenden
                           Reihenfolge (außer -p und -i, wenn nicht bekannt):
-s, --kernel-name        Namen des Kernels ausgeben
-n, --nodename           Netzwerknamen der Maschine ausgeben
-v, --kernel-version     print the kernel version
-p, --processor          print the processor type (non-portable)
-i, --hardware-platform  print the hardware platform (non-portable)
-o, --operating-system   print the operating system
    --help     diese Hilfe anzeigen und beenden
    --version  Versionsinformation anzeigen und beenden

Please feel free to implement missing options and perform a pull request.

fake-uname's People

Contributors

brenkem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fake-uname's Issues

sort option

Hi,

thanks for your tool, it helped me a lot
Though there might be a little improvement as if you have 5.11 and 5.9, the last kernel with sort -n is 5.9
using "sort --version-sort" should do the trick to get the 5.11

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.