eval.sh 540 B

12345678910111213141516171819
  1. #!/bin/sh
  2. echo "$lkmc_eval"
  3. eval "$lkmc_eval"
  4. # Ideally, this script would do just:
  5. #
  6. ## Get rid of the '-'.
  7. #shift
  8. #echo "$@"
  9. #
  10. # However, the kernel CLI parsing is crap, and the 4.14 docs lie.
  11. #
  12. # In particular, not all that is passed after "-" goes to an argument to init,
  13. # e.g. stuff with dots like "- /poweroff.out" still gets treated specially and
  14. # does not go to init.
  15. #
  16. # This also likely means that the above solution is also unreliable in some cases,
  17. # and that in the end you just have to add a script to the root filesystem.