Skip to content

Instantly share code, notes, and snippets.

@Geofferey
Last active May 7, 2025 00:40
Show Gist options
  • Save Geofferey/0b1ec30063824e4a5573c9639e98ff99 to your computer and use it in GitHub Desktop.
Save Geofferey/0b1ec30063824e4a5573c9639e98ff99 to your computer and use it in GitHub Desktop.
inseego_m2000-peristence.sh
#!/bin/sh
## This script will make persistent modifications to the Inseego M2000
#
# • Enables rc.local(.d) init for easily executing arbitrary scripts
# • Permanently enables dropbear SSH via symlink to rc3.d/
# • Permanently enable QCOM HS USB DIAG + ADB on boot
#
/bin/ln -s /etc/init.d/dropbear /etc/rc3.d/S99sdropbear
/usr/bin/curl --output /etc/init.d/rc_local.sh https://gist.githubusercontent.com/Geofferey/e23aa99f58d83dd3ab7dfd5143117a0f/raw/64b98d9db398a2023819120f8523baf91a50e53f/inseego_m2000-init-rc_local.sh
/bin/chmod +x /etc/init.d/rc_local.sh
/usr/bin/curl --output /etc/rc.local https://gist.githubusercontent.com/Geofferey/6ee592e6225627a8109bfc25aa203fd9/raw/2de7c49bdb2635d4864cbcfccf9a473824f3a5f7/inseego-m2000_rc.local
/bin/chmod +x /etc/rc.local
/bin/ln -s /etc/init.d/rc_local.sh /etc/rc3.d/S99srclocal
mkdir /etc/rc.local.d
echo "#!/bin/sh" > /etc/rc.local.d/00test
echo "" >> /etc/rc.local.d/00test
echo "/bin/date > /tmp/rc.local.test" >> /etc/rc.local.d/00test
chmod +x /etc/rc.local.d/00test
/usr/bin/curl --output /etc/rc.local.d/00adbd https://gist.githubusercontent.com/Geofferey/c65b6c2e42c6e3216cae06c5fe241a18/raw/68ad2231dec0f2b88126d67ebae326b81833709a/inseegom2000_rc.local.d_00adbd
chmod +x /etc/rc.local.d/00adbd
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment