Skip to content

Instantly share code, notes, and snippets.

@qnm
Created May 2, 2015 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qnm/8aa281452dcf10de8df5 to your computer and use it in GitHub Desktop.
Save qnm/8aa281452dcf10de8df5 to your computer and use it in GitHub Desktop.
openwrt on erlite3
#!/bin/sh
verify_sysinfo() {
if [ -f /tmp/sysinfo/board_name ]; then
name=$(cat /tmp/sysinfo/board_name)
case "$name" in
er|erlite|erpro)
continue
;;
*)
rm /tmp/sysinfo/board_name
;;
esac
fi
}
boot_hook_add preinit_main verify_sysinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment