Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commands

Sarrailh Rémi edited this page Jul 23, 2015 · 9 revisions

The core modules are divided into three directory.
Since they use symbolic link generated at the installation, there are available directly from the root of your system.

Need user interaction
Need arguments

  • resetHost : Reset /etc/hostname /etc/hosts configuration
  • resetSamba : Reset samba configuration (disable sharing while keeping netbios)
  • socketSend : Send text to a socket
  • wifi : Connect to a wifi network without knowing his SSID
  • wifiFixSlow : Small fixes find on the internet for wifi issues
  • backup : Launch custom backup script /boot/piget/projects/backup.sh
  • ledBlink : Blink the green led on the Raspberry Pi
  • ledOff : Turn off the green led on the Raspberry Pi
  • ledReset : Green led follow sd cards disk activity again
  • name : Change the name of your Raspberry Pi on the network and disable sharing (modify samba/avahi/hostname/hosts)
  • pigetUpdate : update all piget modules
  • project : Launch custom install script /boot/piget/projects/install.sh
  • removeDefaultUser : remove pi account (pi must not be connected and root must exists)
  • removeDesktop : remove all desktop related package
  • removeRaspiNotice : remove notice to launch raspi-config on terminal startup
  • rename : Change the name of your Raspberry Pi on the network without resetting samba configuration
  • resizeSD : resize SDcard on next boot (this will make the next boot slower!)
  • restoreConfig : copy /boot/piget/config into /opt/user/config
  • timeZone : set TimeZone
  • update : unattended update to apt-get/piget/firmware/wiringPi

Color are made available thanks to /root/.bashrc
$GREEN/$BLACK/$NORMAL/$BLUE/$PICOLOR/$INFO/$OK/$WARN/$ERR

  • . askUser : Ask a user a question and put it inside $USERANSWER global variable
  • colecho : Colored echo
  • console : Make stripped line
  • continuePrompt : Ask if user wants to continue
  • description : Big description box
  • displayHTML : Display a directory on port 314 (using pythonSmallServer)
  • errorBox : Display errorBox
  • example : Display an example
  • ipAddress : Display first ip address
  • ipList : List all ip address
  • isConnected : Exit code 0 if connected Exit code 1 if not connected
  • isGitHubRepo : Exit code 0 if github repo Exit code 1 if not github repo
  • isInstalled : Exit code 0 if package installed Exit code 1 if package not installed
  • isRoot : Exit code 1 if not root
  • linebreak : Display a linebreak __________________________
  • listecho : Display a list item ->
  • listUsers : Display all users
  • messagebox : Display a messagebox
  • minibox_ERROR : Display a minibox [ERROR]
  • minibox_OK : Display a minibox [OK]
  • minibox_SKIP : Display a minibox [SKIP]
  • minibox_WARNING : Display a minibox [WARNING]
  • nextline : echo an empty line
  • nlbecho : colored echo without line break
  • smbGetName : get name from samba configuration or display ipaddress
  • usage : Display an usage line
  • usageDescription : Display an description line
  • usageReturn : Display an return variable line

Clone this wiki locally