Skip to content

Instantly share code, notes, and snippets.

View RonaldJerez's full-sized avatar

Ronald Jerez RonaldJerez

View GitHub Profile
@RonaldJerez
RonaldJerez / samba
Created January 31, 2014 01:30
Rewrote the samba implementation in OpenWRT to allow all of the options available in a samba configuration. The included template file is no longer used. Note that you must used an _ (underscore) in place of where Samba uses a space in the options.
#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2012 OpenWrt.org
# Copyright (C) 2014 Ronald Jerez
START=60
SMB_CONF="/var/etc/smb.conf"
SMB_LINK="/etc/samba/smb.conf"
# keep track which config we currently on so we can save
@RonaldJerez
RonaldJerez / style.sh
Created November 30, 2016 20:20
bash function to style your console output.
# Regular colors
BLACK="\e[0;30m"
RED="\e[0;31m"
GREEN="\e[0;32m"
YELLOW="\e[0;33m"
BLUE="\e[0;34m"
MAGENTA="\e[0;35m"
CYAN="\e[0;36m"
GRAY="\e[0;37m"
WHITE="\e[0;97m"