Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| #! /bin/sh | |
| # /etc/init.d/tablet | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: tablet <-- insert here the right service (mysqld for mysql ) | |
| # Required-Start: | |
| # Required-Stop: | |
| # Should-Start: | |
| # Should-Stop: | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start and Stop | |
| # Description: | |
| ### END INIT INFO | |
| # Some things that run always | |
| # Carry out specific functions when asked to by the system | |
| case "$1" in | |
| start) | |
| echo "Starting Tablet Script" | |
| echo "Removing e100..." | |
| rmmod e100 | |
| echo "Removed e100" | |
| sleep 5 | |
| echo "Configuring Wireless..." | |
| iwconfig eth1 essid "ISLER-DS" | |
| dhclient eth1 | |
| echo "Done Configuring Wireless" | |
| echo "Activating Extra Swap..." | |
| swapon /dev/sdb1 | |
| echo "Swap enabled from 4GB Flash Drive" | |
| echo "Script completed" | |
| ;; | |
| stop) | |
| echo "Nothing really to stop..." | |
| ;; | |
| *) | |
| echo "Usage: /etc/init.d/tablet {start|stop}" | |
| exit 1 | |
| ;; | |
| esac | |
| exit 0 | |