From: <kr...@us...> - 2006-06-21 03:57:47
|
Revision: 173 Author: krisk84 Date: 2006-06-20 20:57:39 -0700 (Tue, 20 Jun 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=173&view=rev Log Message: ----------- WRAP reboot fix, nobody UID change Modified Paths: -------------- trunk/target/device/wrap/target_skeleton/boot/grub/grub.conf trunk/target/generic/target_skeleton/etc/passwd Modified: trunk/target/device/wrap/target_skeleton/boot/grub/grub.conf =================================================================== --- trunk/target/device/wrap/target_skeleton/boot/grub/grub.conf 2006-06-20 03:12:25 UTC (rev 172) +++ trunk/target/device/wrap/target_skeleton/boot/grub/grub.conf 2006-06-21 03:57:39 UTC (rev 173) @@ -5,10 +5,10 @@ title AstLinux (Boot from CF - Use USB KeyDisk) root (hd0,0) - kernel /boot/bzImage root=/dev/hda1 console=ttyS0,38400n8 astlinux=net4801 astkd=/dev/sda1 astopt=/dev/hda2 ide=nodma + kernel /boot/bzImage root=/dev/hda1 console=ttyS0,38400n8 astlinux=net4801 astkd=/dev/sda1 astopt=/dev/hda2 ide=nodma reboot=bios savedefault title AstLinux (Boot from CF - Use third partition for KeyDisk) root (hd0,0) - kernel /boot/bzImage root=/dev/hda1 console=ttyS0,38400n8 astlinux=net4801 astkd=/dev/hda3 astopt=/dev/hda2 ide=nodma + kernel /boot/bzImage root=/dev/hda1 console=ttyS0,38400n8 astlinux=net4801 astkd=/dev/hda3 astopt=/dev/hda2 ide=nodma reboot=bios savedefault Modified: trunk/target/generic/target_skeleton/etc/passwd =================================================================== --- trunk/target/generic/target_skeleton/etc/passwd 2006-06-20 03:12:25 UTC (rev 172) +++ trunk/target/generic/target_skeleton/etc/passwd 2006-06-21 03:57:39 UTC (rev 173) @@ -1,4 +1,4 @@ root:x:0:0:root:/tmp/root:/bin/sh sshd:x:22:22:sshd:/dev/null:/bin/false ftp:x:21:21:ftp user:/home/ftp:/bin/false -nobody:x:65535:65535:no one:/dev/null:/bin/false +nobody:x:1000:1000:no one:/dev/null:/bin/false This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2006-08-11 18:06:11
|
Revision: 234 Author: krisk84 Date: 2006-08-11 11:06:08 -0700 (Fri, 11 Aug 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=234&view=rev Log Message: ----------- add persistent logs Modified Paths: -------------- trunk/target/generic/target_skeleton/etc/rc trunk/target/generic/target_skeleton/stat/etc/rc.conf Modified: trunk/target/generic/target_skeleton/etc/rc =================================================================== --- trunk/target/generic/target_skeleton/etc/rc 2006-08-11 18:05:08 UTC (rev 233) +++ trunk/target/generic/target_skeleton/etc/rc 2006-08-11 18:06:08 UTC (rev 234) @@ -163,7 +163,6 @@ mkdir /var/empty mkdir /var/lock mkdir /var/db -mkdir /var/log mkdir /var/run touch /var/run/utmp touch /var/log/wtmp @@ -173,6 +172,20 @@ mkdir /tmp/root mkdir /tmp/bin +if [ "$PERSISTLOG" ] +then + +if [ ! -d /mnt/kd/log ] +then +mkdir /mnt/kd/log +fi + +ln -s /mnt/kd/log /var/log + +else +mkdir /var/log +fi + if `cat /proc/cmdline | grep -q depmod` then echo "Running depmod as requested..." Modified: trunk/target/generic/target_skeleton/stat/etc/rc.conf =================================================================== --- trunk/target/generic/target_skeleton/stat/etc/rc.conf 2006-08-11 18:05:08 UTC (rev 233) +++ trunk/target/generic/target_skeleton/stat/etc/rc.conf 2006-08-11 18:06:08 UTC (rev 234) @@ -350,6 +350,10 @@ ##syslog's remote logging features. #SYSLOGHOST="" +##Persistent Logs +##If this variable is defined, logs are saved to the keydisk instead of RAM +#PERSISTLOG=yes + ##NFSROOTPATH ##For diskless clients, the path to use for a root filesystem. #NFSROOTPATH="$INTIP:/mnt/kd/nfsroot" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2007-02-07 18:46:48
|
Revision: 553 http://svn.sourceforge.net/astlinux/?rev=553&view=rev Author: krisk84 Date: 2007-02-07 10:46:41 -0800 (Wed, 07 Feb 2007) Log Message: ----------- root filesystem cleanups Modified Paths: -------------- trunk/target/generic/target_skeleton/etc/init.d/network Removed Paths: ------------- trunk/target/generic/target_skeleton/etc/astup.note trunk/target/generic/target_skeleton/etc/astup.prenote Deleted: trunk/target/generic/target_skeleton/etc/astup.note =================================================================== --- trunk/target/generic/target_skeleton/etc/astup.note 2007-02-07 17:17:21 UTC (rev 552) +++ trunk/target/generic/target_skeleton/etc/astup.note 2007-02-07 18:46:41 UTC (rev 553) @@ -1,366 +0,0 @@ ------------AstLinux 0.2.4---------------- - -When running astup, you should always run it twice. This is because any -changes that I make to the astup script will not apply the first time around. -Running it twice will use the new code the second time and apply any new -changes (like this notice for critical updates). - -The firewall will now block ALL incoming requests on the external interface. -(Router mode only). If you are using a keydisk this will not apply automatically. -You will need to manually copy the astfw script to overwrite yours: - -cp -a /usr/sbin/astfw /mnt/kd/ - -If you have made changes to astfw you will need to redo them. - -You should now pass the path to your root filesystem & keydisk filesystem -on the GRUB command line: - -root=/dev/hda1 astlinux=i586 astkd=/dev/sda - -This would be for a CF card on hda, a generic i586 machine, and a keydisk -on /dev/sda. You can change what is used on startup by editing -/boot/grub/grub.conf - -genkd now accepts the device to create: - -"genkd /dev/sda1" - -By default it will try to use the value of astkd= from boot, but this can be -used to override this. - -Remember to sign up for the mailing lists at http://lists.kriscompanies.com - ----------------------------------------------- - -------------------AstLinux 0.2.5.5------------------------------------------ - -So I made a Changelog: - -- Use Kernel 2.6 - -- remove zaprtc (ztdummy + 2.6 = nice) - -- Support ISDN/BRI through mISDN and chan_misdn. Set ISDN_MODPROBE equal to -the line that you would give modprobe to properly setup your card. See -rc.conf for more information, and don't forget to enable chan_misdn in -/etc/asterisk/modules.conf! - --------------------AstLinux 0.2.5.6----------------------------------------- - -- added Sangoma modules that were not in 0.2.5.5. Sorry! - -- created astlinux-opt. There is a new script called "mkopt" that will get -astlinux-opt for you. For the time being you are responsible for -partitioning, formating, and mounting the device to be used. It must be -formatted ext2, and you must mount it at /mnt/opt. Then run the script to -get nano, etc. back. - -- added astback - simple backup script - -- disabled IDE DMA transfers by default. Too many motherboards do not -properly disable/enable DMA, so now we are going to force them to. Look in -rc.conf to see how to enable DMA support for specific devices that you know -it will work with. - -------------------AstLinux 0.2.5.7------------------------------------------- - -- add precision RTC support to genrtc.ko and hopefully fix * timing issues - -- added avmfritz.ko sample ISDN_MODPROBE line to /etc/rc.conf. - -- add AstLinux extensions support to enable vendor specific extensions on a -conditional basis. Currently the only supported extension is PBXWare from -Bicom Systems: http://www.bicomsystems.com/products/C/P/319/131/ You can -enable it by setting EXTENSIONS="pbxware" in rc.conf. - -- web interface tweaks (thanks Mark) - -- added "screen" terminal type - -------------------AstLinux 0.2.5.8------------------------------------------ - -- add VPN support - -------------------AstLinux 0.2.5.9------------------------------------------ - -- add support for starting tftpd/vsftpd in "standalone" mode -- tftp and ftp are no longer started by default, please read - /stat/etc/rc.conf - ------------------AstLinux 0.2.6 ------------------------------------------- - -- updated this file and /etc/astlinux-release - -----------------AstLinux 0.2.6.1------------------------------------------- - -- include meetme patch from bug 4252 -- apparently Sangoma wanpipe modules don't like to have the debug symbols - stripped out from them or zaptel. undo stripping for wanrouter & zaptel.ko - -----------------AstLinux 0.2.6.2------------------------------------------- - -- setup AUTOMODS in rc.conf to phase out /etc/rc.modules. You will need to -place any modules in /etc/rc.modules to AUTOMODS in rc.conf. Then delete -/etc/rc.modules and add it to /etc/astup.ex. Or not, it's up to you. If -/etc/rc.modules does exist, AUTOMODS will be ignored. - -- Use Tony Mountifield's ztdummy to fix MeetMe problems. (Thanks Tony)! -UPADTE: This is still a little messy, and has some unresolved compatibility -issues. For starters, you will need to remove ztdummy from /etc/rc.modules -or AUTOMODS, depending on which you use. Then, you will need to replace -genrtc in /etc/rc.modules or AUTOMODS with "rtc". Done. The new code will -assume that if you don't have /etc/zaptel.conf, you need ztdummy and will load -it for you (when Asterisk starts). This is still in testing. - ----------------AstLinux 0.2.6.3-------------------------------------------- - -- rework init system to better support runlevels, startup, stops, etc. - basic support for "runlevels" - no real use yet... - ---------------AstLinux 0.2.6.4--------------------------------------------- - -- add support for runlevels - single, default, and custom you can now pass - these on the GRUB command line and it will use the scipts as they are in - /etc/runlevels - -- add support for BIND and ISC DHCPD - YOU MUST HAVE ASTLINUX-OPT! - -- reworked init system to seperate network startup from system startup - --------------AstLinux 0.2.6.5--------------------------------------------- - -- fix broken tftp symlinks - --------------AstLinux 0.2.6.6--------------------------------------------- - -- add app_supervaletparking (thanks JP) - --------------AstLinux 0.2.6.7--------------------------------------------- - -- /usr/bin/id fixes to adsl-* scripts -- update astmanproxy to 1.0 -- include Newman Telecom app_nv_faxdetect and app_nv_backgrounddetect - ------------AstLinux 0.2.6.8----------------------------------------------- - -- kernel change to better support initrd's -- slight genkd fixes - ------------AstLinux 0.2.6.9---------------------------------------------- - -- DMZ support (see /stat/etc/rc.conf) -- astfw cleanup - ------------AstLinux 0.2.7------------------------------------------------ - -- MAJOR init cleanups (conditional start/stops) -- Moved zaptel modules to seperate variable - see /stat/etc/rc.conf -- Improved Sangoma support - should now work for voice and data - (for voice you will still need to edit /etc/zaptel.conf) -- If you are not using Sangoma hardware, make sure to delete - /etc/wanpipe/wanpipe*.conf -- Improved Zaptel support - should now work for voice and data -(please note you still need to manually run wancfg and/or edit -/etc/zaptel.conf) -- removed broken PPPoE startup code - anyone want to work on this? - ----------AstLinux 0.2.7.1------------------------------------------------- - -- misc. web interface fixes - ---------AstLinux 0.2.7.2------------------------------------------------- - -- backward compatibility fix to /etc/rc - ---------AstLinux 0.2.7.3------------------------------------------------- - -- link /usr/share/zoneinfo to /mnt/opt/zoneinfo -- add ability for HTTP only version of mini_httpd. See /stat/etc/rc.conf. - --------AstLinux 0.2.7.4-------------------------------------------------- - -- busybox fixes -- remove legacy sangoma utilities - --------AstLinux 0.2.7.5-------------------------------------------------- - -- fix TOTALLY broken genkd. Sorry about that! -- No longer start AstShape by default. You need to enable the rc.conf options - to enable it.. - -------------AstLinux 0.2.7.6--------------------------------------------- - -- fix broken Zaptel init code -- add more IDE device nodes -- further Zaptel data support - -------------AstLinux 0.2.7.7--------------------------------------------- - -- Asterisk init script now check for asterisk (directory) on /mnt/kd - ------------AstLinux 0.2.7.8---------------------------------------------- - -- Re-work init scripts to use subroutines and support being called with -init and restart -- introduce astdebug script to aid in debugging (needs some work) - -----------AstLinux 0.2.7.9----------------------------------------------- - -- fix spelling error in genkd -- fix vsftpd init script -- fix $AUTOMODS variable to prevent 3c59x error on startup - -----------AstLinux 0.2.7.10---------------------------------------------- - -- PPPoE is back! - -----------AstLinux 0.2.7.11---------------------------------------------- - -- Misc. init cleanups -- web interface tweaks -- HTTPS/NTP variables added (see /stat/etc/rc.conf for more info) -- add WANDELAY variable for sleeping on startup before bringing up the - wan interface. Use this for tricky PPPoE connections or frame relay. - -----------AstLinux 0.2.7.12---------------------------------------------- - -- astfw changes, added EXTOPEN variable. See /stat/etc/rc.conf. -- slight genkd fixes - -----------AstLinux 0.2.7.13---------------------------------------------- - -- include rawplayer (for MOH) -- re-convert ulaw MOH files to fix volume issues -- update /stat/etc/musiconhold.conf for rawplayer examples - ----------AstLinux 0.2.7.14---------------------------------------------- - -- rc.conf TIMEZONE support - --------------AstLinux 0.2.8--------------------------------------------- - -- updated astlinux-release -- updated astup.note - ------------AstLinux 0.2.8.1--------------------------------------------- - -- fix DHCPDOPTS variable in /etc/init.d/dhcpd (thanks Jason) - ------------AstLinux 0.2.8.2--------------------------------------------- - -- add diskless client support to dnsmasq (see /stat/etc/rc.conf) - ------------AstLinux 0.2.8.3 (The user feedback release!) ---------------- - -- Configurable SMTP_DOMAIN and SMTP_HOSTNAME -- Add NFS server ability with NFS_EXPORTS_RO and NFS_EXPORTS_RW -- "rc.local" support (see /etc/init.d/local) -- Configure standalone tftpd and vsftpsd server flags with TFTPDOPTIONS - and FTPDOPTIONS -- Add ability for SSH key based auth (see /etc/init.d/sshd) -- Add support for dynamic /etc/hosts hostnames (see /etc/init.d/network) - ------------AstLinux 0.2.8.4 ------------------------------------- - -- fix shell script typos in nfsd and vsftpd -- fix NTPD date bug -- fix hosts order in /etc/hosts -- as of 0.2.8.3 /sys is now mounted by default. Make sure to add it to - /etc/astup.ex if you need to. - --------------AstLinux 0.2.8.5-------------------------------------- - -- fix dnsmasq option 66 (thanks Chris) - --------------AstLinux 0.2.8.6-------------------------------------- - -- add support for INT2IF and INT3IF -- astup opt fixes for Enzo -- asterisk init script ISDN modprobe fix (remove quotes) -- add support for changing EXTIF's MAC Address -- add support for defining IP address MAC address pairs -- add opt paths to /etc/rc -- do not use watchdog by default (define WDMODULE in rc.conf) -- astup now supports upgrading builds - -------------AstLinux 0.2.8.7--------------------------------------- - -- add support for dynamic dns updates using inadyn - ------------AstLinux 0.2.8.8---------------------------------------- - -- add dnsmasq bootp and nfspath options (AGAIN) -- added VLAN support (see /stat/etc/rc.conf) - -----------AstLinux 0.2.8.9----------------------------------------- - -- create zaptel.conf symlink -- add progress indicator to astup and mkopt -- fix /etc/hosts in PBX only mode -- better checking of variables -- better support for hardware clocks (hopefully) -- update Asterisk init script for keydisk monitor support -- update zaptel init script to better handle zaptel.conf - ----------AstLinux 0.2.8.10----------------------------------------- - -- now that hwclock seems to work, check filesystems for consistency -- PBX only mode is now the default (only if you use the default rc.conf) -- astback rewrite -- web interface tweaks - ----------AstLinux 0.2.9----------------------------------------- - -- upgrade to zaptel 1.2.0, asterisk 1.2.0, libpri 1.2.0 -- upgrade to wanpipe beta1s-2.3.4 -- upgrade to Linux 2.6.13.3 -- build rtc into the kernel -- fix astshape (use kernel jiffies) - ----------AstLinux 0.2.9.1---------------------------------------- -- improve SSHD host key handling -- generate /etc/issue and /etc/issue.net from rc.conf -- genkd fixes for PBX only mode -- use 1.2 svn branches for libpri, zaptel, and asterisk -- chan_misdn fix - ----------AstLinux 0.3.0------------------------------------------ -- upgrade to wanpipe-2.3.4x -- update /etc/astup.note - ----------AstLinux 0.3.1------------------------------------------ -- add chan_sccp - ----------AstLinux 0.3.2------------------------------------------ -- add app_ldap - ------------AstLinux 0.3.3---------------------------------------- -- add res_conv (convert audio with Asterisk!) - ------------AstLinux 0.3.4---------------------------------------- -- switch to msmtp (supports SSL, SMTP AUTH, etc) - ------------AstLinux 0.3.5---------------------------------------- -- fix e2fsck problems on boot -- fix MSMTP config problems -- add openvpn init section from Darrick Hartman -- support passing module parameters in /etc/rc.modules - -----------AstLinux 0.3.6----------------------------------------- -- support kernel mode PPPoE with rp-pppoe and pppd - -----------AstLinux 0.3.7----------------------------------------- -- dynamic dns fixes - ------------------------------NOTES------------------------------------------- - -AS ALWAYS, YOU SHOULD LOOK OVER /stat/etc/rc.conf TO SEE IF THERE ARE ANY NEW -FEATURES THAT YOU WOULD LIKE TO USE!!! ------------------------------------------------------------------------------ - -I am always looking for people to donate any hardware (especially Sangoma/ -Digium T1/E1 or ISDN interfaces). Please contact me if you are willing to -donate/loan some hardware to me to ensure that it will work with AstLinux. - -Thank you for using AstLinux! Deleted: trunk/target/generic/target_skeleton/etc/astup.prenote =================================================================== Modified: trunk/target/generic/target_skeleton/etc/init.d/network =================================================================== --- trunk/target/generic/target_skeleton/etc/init.d/network 2007-02-07 17:17:21 UTC (rev 552) +++ trunk/target/generic/target_skeleton/etc/init.d/network 2007-02-07 18:46:41 UTC (rev 553) @@ -116,17 +116,17 @@ if [ "$INTIF" -a "$INTIP" -a "$INTNM" ] then echo "Bringing up $INTIF as $INTIP" -ifconfig "$INTIF" inet "$INTIP" netmask "$INTNM" +ifconfig "$INTIF" "$INTIP" netmask "$INTNM" fi if [ "$INT2IF" -a "$INT2IP" -a "$INT2NM" ] then -ifconfig "$INT2IF" inet "$INT2IP" netmask "$INT2NM" +ifconfig "$INT2IF" "$INT2IP" netmask "$INT2NM" fi if [ "$INT3IF" -a "$INT3IP" -a "$INT3NM" ] then -ifconfig "$INT3IF" inet "$INT3IP" netmask "$INT3NM" +ifconfig "$INT3IF" "$INT3IP" netmask "$INT3NM" fi if [ "$EXTIF" -a "$EXTIFMAC" ] @@ -223,7 +223,7 @@ then ifconfig "$EXTIF" "$EXTIP" pointopoint "$EXTGW" else -ifconfig "$EXTIF" inet "$EXTIP" netmask "$EXTNM" +ifconfig "$EXTIF" "$EXTIP" netmask "$EXTNM" fi fi @@ -244,7 +244,7 @@ then ifconfig "$EXT2IF" "$EXT2IP" pointopoint "$EXT2GW" else -ifconfig "$EXT2IF" inet "$EXT2IP" netmask "$EXT2NM" +ifconfig "$EXT2IF" "$EXT2IP" netmask "$EXT2NM" fi fi @@ -284,7 +284,7 @@ if [ "$DMZIF" -a "$DMZIP" -a "$DMZNM" ] then echo "Bringing up $DMZIF as $DMZIP" -ifconfig "$DMZIF" inet "$DMZIP" netmask "$DMZNM" +ifconfig "$DMZIF" "$DMZIP" netmask "$DMZNM" fi } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kr...@us...> - 2007-06-27 18:54:27
|
Revision: 1102 http://svn.sourceforge.net/astlinux/?rev=1102&view=rev Author: krisk84 Date: 2007-06-27 11:54:28 -0700 (Wed, 27 Jun 2007) Log Message: ----------- net5501 error led support Modified Paths: -------------- trunk/target/generic/target_skeleton/etc/init.d/errorled trunk/target/generic/target_skeleton/etc/rc Modified: trunk/target/generic/target_skeleton/etc/init.d/errorled =================================================================== --- trunk/target/generic/target_skeleton/etc/init.d/errorled 2007-06-21 03:57:54 UTC (rev 1101) +++ trunk/target/generic/target_skeleton/etc/init.d/errorled 2007-06-27 18:54:28 UTC (rev 1102) @@ -15,6 +15,17 @@ echo 0 > /sys/class/leds/wrap:error/brightness fi +if `grep -q "astlinux=net5501" /proc/cmdline` +then +if [ ! -r /dev/errorled ] +then +modprobe cs5535_gpio +MAJOR=`cat /proc/devices | grep cs5535_gpio | cut -d" " -f1` +mknod /dev/errorled c $MAJOR 6 +fi +echo 0 > /dev/errorled +fi + } stop () { @@ -30,6 +41,17 @@ echo 1 > /sys/class/leds/wrap:error/brightness fi +if `grep -q "astlinux=net5501" /proc/cmdline` +then +if [ ! -r /dev/errorled ] +then +modprobe cs5535_gpio +MAJOR=`cat /proc/devices | grep cs5535_gpio | cut -d" " -f1` +mknod /dev/errorled c $MAJOR 6 +fi +echo 1 > /dev/errorled +fi + } case $1 in Modified: trunk/target/generic/target_skeleton/etc/rc =================================================================== --- trunk/target/generic/target_skeleton/etc/rc 2007-06-21 03:57:54 UTC (rev 1101) +++ trunk/target/generic/target_skeleton/etc/rc 2007-06-27 18:54:28 UTC (rev 1102) @@ -148,6 +148,14 @@ echo 1 > /sys/class/leds/wrap:error/brightness fi +if `grep -q "astlinux=net5501" /proc/cmdline` +then +modprobe cs5535_gpio +MAJOR=`cat /proc/devices | grep cs5535_gpio | cut -d" " -f1` +mknod /dev/errorled c $MAJOR 6 +echo 1 > /dev/errorled +fi + #set the clock to local time if [ -r /dev/rtc ] then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |