##安装
opkg update && opkg install samba luci-app-samba
##配置
#/etc/config/samba
config sambashare
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
#!/usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
import os.path | |
import urllib2 | |
import shutil | |
import hashlib | |
import logging | |
def validate_file(file_path, hash): | |
""" | |
Validates a file against an MD5 hash value |
config 'global' | |
option anon_swap '0' | |
option anon_mount '0' | |
option auto_swap '1' | |
option auto_mount '1' | |
option delay_root '10' | |
option check_fs '0' | |
config 'mount' | |
option target '/overlay' |
config samba | |
option 'name' 'SchoolPot' | |
option 'workgroup' 'SchoolPot' | |
option 'description' 'SchoolPot' | |
option 'homes' '1' | |
config sambashare | |
option name 'root' | |
option users 'root' | |
option path '/home' |
#!/bin/bash | |
# Run as root | |
set -e | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y libncurses5-dev | |
useradd mysql |
#!/bin/bash | |
sed -i 's/getline/apache_getline/' src/support/htdigest.c | |
sed -i 's/getline/apache_getline/' src/support/htpasswd.c | |
sed -i 's/getline/apache_getline/' src/support/logresolve.c | |
sed -i 's/getline/apache_getline/' src/main/http_protocol.c | |
echo "Related files has been rewriten successfully, ready to be complied" |
# | |
# This file can be used to set additional environment variables for | |
# the httpd process, or pass additional options to the httpd | |
# executable. | |
# | |
# Note: With previous versions of httpd, the MPM could be changed by | |
# editing an "HTTPD" variable here. With the current version, that | |
# variable is now ignored. The MPM is a loadable module, and the | |
# choice of MPM can be changed by editing the configuration file | |
# /etc/httpd/conf.modules.d/00-mpm.conf. |
#!/bin/bash | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \ | |
| while read i; do | |
sudo rm /usr/local/${i} | |
done | |
sudo rm -rf /usr/local/lib/node \ | |
/usr/local/lib/node_modules \ | |
/var/db/receipts/org.nodejs.* |